Element X is strongly electropositive and Y is strongly electronegative. Both are univalent. The compound formed would be:
X+Y−
Electropositive elements form positive ions and electronegative elements form anions. Both are held together by electrostatic forces of attraction.