The math department sold pie slices to buy new math books. Two pies were contributed by members of the department. Each pie was cut into six slices and the slices were sold individually. There were a total of 48 pieces to sell. How many whole pies did the department have to sell? A. 4 pies B. 8 pies C. 6 pies D. 7 pies