It forms magnesium oxide by reacting with oxygen
The balanced equation is provided by
[tex]\\ \rm\hookrightarrow 2Mg+O_2=2MgO[/tex]
On both sides
Hence balanced