A magnesium ribbon is burnt in oxygen to give a white compound X accompanied by the emission of light. If the burning ribbon is now placed in an atmosphere of nitrogen, it continues to burn and forms a compound Y. (a) Write the chemical formulae of X and Y.
Reaction of Magnesium ribbon with oxygen:
Reaction of Magnesium with Nitrogen:
Thus, compound X is Magnesium oxide and compound Y is Magnesium nitride .