What do you understand by lone pair and shared pair?
Lone pair of electrons in a covalent compound does not participate in the covalent bond formation between two atoms.
Shared pair of electrons is shared between two atoms in a molecule to form a covalent bond and it lies between the two participating atoms. These pairs of electrons help both the atoms to complete their octet.