Element X has an electronic configuration of (2,8,2) and Element Y has an electronic configuration of (2,6).The compound formed by X and Y is covalent.
The compound formed is an ionic compound. An ionic compound is a chemical compound formed due to the transfer of electrons. In an ionic bond, the ions formed are held together by the electrostatic force of attraction between the oppositely charged ion.
Electronic configuration of Element X is (2,8,2).
Electronic configuration of Element Y is (2,6).
Element X has 2 valence electrons and element Y has 6 valence electrons. Hence element X donates 2 electrons to element Y inorder to gain octet configuration.