The electronic configuration of E is (2,8,8,1) and G is (2,8,7). We observe that E tends to donate one electron and G tends to gain one electron to attain a stable state. Hence, the the two oppositely charged ions attract each other to form an ionic compound EG.
Ionic bond will be formed.
