Step 1: Calculate the moles for each substance.
For nitrogen (N), the molar mass is 14 g/mol, so 14g corresponds to 1 mole.
For magnesium (Mg), the molar mass is 24 g/mol, so 24g corresponds to 1 mole.
Step 2: Identify the mole ratio.
Since both nitrogen and magnesium have equal molar quantities (1 mole), the ratio of moles is 1:1.