(1) Percent to mass:
Assume 100 g of the substance,
then 72.2 g magnesium and 27.8 g nitrogen
.