Element X needs two electrons to complete its valence octet. Two X atoms share two electron pairs equally, establishing a double covalent bond to create a stable diatomic molecule with the structure X double bond X.
Home/certain other element y has two electrons in its second shell