Successive ionization potentials of a metallic element 'M' are 520 kJ, 7300 kJ, 10100 kJ, 13500 kJ respectively. Identify the formulae of compounds when it combines with non-metals X and Y. 'X' contains 7 electrons in valence 'M' shell and 'Y' contains 6 electrons in valence 'N' shell.