Magnesium forms both an oxide and a nitride when burned in air. Discuss the formation of magnesium oxide and magnesium nitride when magnesium atoms react with oxygen and nitrogen atoms.

2 answers

I will leave the discussion to you. The equations are
2Mg + O2 ==> 2MgO
3Mg + N2 ==> Mg3N2.
As in the air there are oxygen and some % of nitrogen found therefore when Mg reacts with air it forms both nitride and oxide.