What happens when magnesium reacts with

What happens when magnesium reacts with
(i) $C{{O}{2}}$
(ii) $S{{O}
{2}}$ gas?

The less negative value for Be arises from the large hydration energy associated with the small size of B{{e}^{2+}} and the relatively large value of the enthalpy of atomisation of the metal.