When the total number of bonds and lone pairs is equal to six, these are arranged in a octahedron to minimise repulsion between them

The shape of the molecule depends on the placement of the bonds. Click on the buttons to see how the possible shapes that result based on this arrangement.