Answer:
4 pairs are needed for the bonds, leaving 1 lone pair. Each double bond uses 2 bond pairs and can be thought of as a single unit. There are 2 double bond units and 1 lone pair, which will try to get as far apart as possible - taking up a trigonal planar arrangement.