The cooking club made some pies to sell during lunch to make money to go on 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?