Give the formulae of the stable binary compounds that would be formed

Give the formulae of the stable binary compounds that would be formed by the combination of the following pairs of elements.

(i) Mg and N2
(ii) Li and O2
(hi) Al and Cl2
(iv) K and O2

(i) Mg3N2 Magnesium nitride
(ii) Li2O Lithium oxide
(iii) AlCl3, Aluminium chloride
(iv) K2O, Potassium oxide