Hello, Addy,
We need to have a balanced equation.
N2 + H2 = NH3
We can see from the NH3 that we need 2 of them to account for the two nitrogens from N2, so add a coefficient of 2. This creates a need for 6 hydrogens, so place a 3 for the H2, and the equation now looks balanced.
N2 + 3H2 = 2NH3
Calculate moles from the masses of both the N2 and H2 . Do this by dividing the masses by the molar mass of each reactant.
N2 : 2.5g/(28g/mole) = 0.089 moles
H2 : 4.5g/(2g/mole) = 2.25 moles
The balanced equation says, for H2 we need three times the moles of N2 . That's 0.268 moles of hydrogen that we'll need to react with all of the nitrogen. We have far more than that of H2 , so that means that the N2 is the limiting reagent. We will assume of of it is used in making the ammonia (NH3).
Multiply the moles of N2 by 3, since the equation says we'll get 3 moles of ammonia for every mole of nitrogen, and it is moles of ammonia we want. That yields 0.178 moles of NH3. Multiply that by ammonia's molar mass of 17 to find 3.04 grams of ammonia. Trim that to 3.0 grams for two sig figs.
As a side note, we are left with 1.98 moles of unreacted H2. That's 4 grams of hydrogen. Added to the 3 grams of ammonia, that means we have 7 grams total of products and unreacted reactants. We started with a total of (2.5 + 3.5) 7 grams of reactants, so the conservation of matter law is demonstrated here.
I hope this helps,
Bob