How many moles of magnesium are needed to react with 16 g of O2?

2 MgO (s) + O2 (g) → 2 MgO (s)