Since you have moles of NH3, you have to convert moles of that to moles of each reactant. Therefore:
9.4 moles NH3 x 3 moles H2 / 2 moles NH3 = 14.1 moles of H2
9.4 moles NH3 x 1 mole N2 / 2 moles NH3 = 4.7 moles of N2
Now that you have the moles of each reactant, all you have to do is convert from moles of each reactant to grams by finding the molar mass of nitrogen gas and hydrogen gas:
14.1 moles H2 x 2(1.00795)g / 1 mol H2 = 28.42g of H2
4.7 moles of N
2 x 2(14.00674) / 1 mol N
2 = 131.66g of N
2
∴ you have 131.66g of N2 and 28.42g of H2. I hope this helps!!