A swimming pool fence was placed around a rectangular enclosure of length 12 m and width 8 m. A post was placed every 2 m. How many posts were needed?