There are only HB and F type pencils in the store. The ratio of the number of HB to F is 3 : 2. If there are 12F type pencils, how many pencils are there altogether?