Answer:
See image
Step-by-step explanation:
The valence electrons (outer shell electrons) get shared between the first and second element in the compound the purpose is for both the elements to get to the stable state by having the outer shell filled up to 8 electrons. See image.