When a 4.0 g sample of magnesium (Mg) is burned in air, it reacts with oxygen (O2) to form magnesium oxide (MgO). The balanced chemical equation for the reaction is:
2 Mg (s) + O2 (g) → 2 MgO (s)
How many grams of magnesium oxide (MgO) will be produced from the complete reaction of this magnesium sample?