(a) Magnesium combines with oxygen from the air: 2Mg+O2→2MgO. The mass increases because the oxygen taken from the air was not weighed at the start. If the oxygen consumed is counted, mass of reactants (Mg + O2 used) = mass of product (MgO), so the law of conservation of mass is not broken.
(b) Mg =25.92−25.20=0.72 g; O =26.40−25.92=0.48 g; Mg : O =0.72:0.48=3:2.
n(Mg)=240.72=0.030 mol,n(O)=160.48=0.030 mol
The mole ratio is 1:1, so the empirical formula is MgO.
(c) The 0.48 g of oxygen in the oxide came from air as O2 molecules (32 g mol⁻¹):
n(O2)=32 g mol−10.48 g=0.015 mol;N=0.015×6.022×1023=9.0×1021 molecules
(0.48 g has two significant figures, so the results are given to two.) This is exactly the mass gain explained in (a).