When an iron object is left in damp air for a considerable time, it gets covered with a reddish- brown flaky substance called rust. ... Rusting of iron is a chemical change because a new substance iron oxide is formed. The presence of oxygen and water or water vapour is essential for rusting.
Since the beaker was heated we can asume that only magnesium cloride is left in the beaker, therfore the difference between the beaker with magnesium chloride and the empty beaker give the mass of magnisium chloride: