Answer: The mass of magnesium consumed will be 14.731 g.
Step-by-step explanation:
To calculate the number of moles, we use the equation:
.....(1)
Given mass of nitrogen gas = 5.65 g
Molar mass of nitrogen gas = 28 g/mol
Putting values in above equation, we get:

For the given chemical equation:

By Stoichiometry of the reaction:
1 mole of nitrogen gas reacts with 3 moles of magnesium.
So, 0.202 moles of nitrogen gas will react with =
of magnesium.
Now, calculating the mass of magnesium by using equation 1, we get:
Moles of magnesium = 0.606 moles
Molar mass of magnesium = 24.31 g/mol
Putting values in equation 1, we get:

Hence, the mass of magnesium consumed will be 14.731 g.