Dear student,
no. of moles of NH3 = 340 / 17 = 20 moles
1. Now as for 1 mole of NH3 there are 3 moles of H is required
so for 20 ,moles of NH3 , 60 moles of H is required
2. for 20 moles of NH3 , 20 moles of N is required
now mass of N = 20 x 14 = 280 gm
Regards