Solution:
An element ‘X’ has one valence electron….. …..It forms X+ by losing an electron.
An element ‘Y’ has six valence electrons……It forms Y2- by gaining two electrons.
Thus the formula of the ionic compound formed between them is best represented by X2Y.