i. When magnesium ribbon is burnt in oxygen, it forms magnesium oxide with emission of light and heat energy.
Chemical formula of compound X is MgO.
If the burning ribbon is placed in nitrogen gas chamber, magnesium reacts with nitrogen and forms magnesium nitride (Mg3N2).
ii. If magnesium oxide is dissolved in water, it forms magnesium hydroxide.