Question: how many moles of magnesium are needed to react with 16g of o2?
Answer: So 16g O2 i.e. 1/2 moles of O2 will react with=2*(1/2) moles of Mg= 1 mole of Mg.