The VSEPR theory can be used to predict the shape of molecules by considering the number of bonding pairs and lone pairs around the central atom. Linear geometry occurs when there are 2 bonding pairs and no lone pairs or when lone pairs cause repulsion to maintain a linear shape.