write out the eqn of magnesium and oxygen. this should be under “metals” chapter. do revise.
next, find the mols of both oxygen and magnesium. compare the ratios and find the LIMITING REAGENT.
use the mols of the limiting reagent to compare with the mols of the product.
take the mols of the product/mr of the product.
this will give u the mass.