The correct option is D 3
The atomic number of X is 20. So, its electronic configuration is 2, 8, 8, 2. It has two electrons in its outermost shell. Thus, X atom transfers its two valence electrons to two Y atoms (2, 8, 7) and changes into a stable X ion (X+2).
X→X+2+2e−
2,8,8,2 2,8,8
2[:¨Y..:]+2e−→[:¨Y..:]−
These ions are now held together by electrostatic forces of attraction :
X++2[:¨Y..:]−→X+22Y−
or X+2+2Y−→XY2