Shared electrons are those that are involved in covalent bonds between two atoms. They are shared between two atoms and contribute to the stability of the molecule. In ammonia (NH3), there are three shared pairs of electrons between the central nitrogen atom and the three hydrogen atoms. These shared pairs are represented by the lines in the Lewis dot structure of ammonia.
Unshared electrons, also known as lone pairs, are those that are not involved in any covalent bonds and are located on the central atom. In ammonia, there is one unshared pair of electrons on the nitrogen atom. These electrons are not involved in bonding but contribute to the overall shape and polarity of the molecule.
In CH2Cl2, the central atom is carbon, and it forms four covalent bonds with two chlorine atoms and two hydrogen atoms. Therefore, there are four shared pairs of electrons in CH2Cl2. The chlorine atoms also have three unshared pairs of electrons each, while the carbon atom has no unshared pairs.
In terms of Lewis dot structure, the central atom in both ammonia and CH2Cl2 would be the one with the least electronegativity, which is nitrogen in ammonia and carbon in CH2Cl2. This is because these atoms are more likely to share electrons rather than attract them.