Question: how many moles of magnesium were used?
Answer: The relative masses of each element can be found on the periodic table. For example, one atom of magnesium weighs 24.31 amu (atomic mass units). However, one mole of magnesium weighs 24.31 g. (Moles were planned that way!)