The Cooking Club made some pies to sell during lunch to raise money for a field trip. The cafeteria helped by donating two pies to the club. Each pie was then cut into five pieces and sold. There were a total of 45 pieces to sell. How many pies did the club make?