The Lewis representation above depicts a reaction between a halogen (blue) and a main-group element from groupÂ
 (red).
In this representation, each Y atom needsÂ
 electron(s) to complete its octet, and gains these electrons by formingÂ
 bond(s) with atoms of X .
There areÂ
 unshared electron pair(s) andÂ
 bonding electron pair(s) in the product molecule.
The bonds in the product areÂ
.