(a) Chlorine has 17 electrons, arranged in shells as 2, 8, 7. It has 7 electrons in its outermost shell and needs one more to complete an octet, so its valency is 1.
(b) Each chlorine atom puts one of its seven valence electrons into a shared pair. The pair belongs to the outermost shells of both atoms, so each atom now has 6+2=8 electrons around it, the stable octet of the noble gas argon.
Cl−Cl
One shared pair makes a single covalent bond. The other six valence electrons of each atom stay with that atom as three lone pairs. Counting the dots: 2×7=14 valence electrons = 1 shared pair (2 electrons) + 6 lone pairs (12 electrons).


Covalent bonding — atoms sharing electron pairs to fill their outer shells.