Science – Atoms, elements and compounds

3.  24 g of magnesium were burned up in oxygen. The compound formed had a mass of 40g. Explain why the mass has gone up.