The cooking club made some pies to sell at lunch to raise money for the end of the year party. The cafeteria contributed two pies. Each pie was then cut into eight pieces and sold. There were a total of 88 pieces to sell. How many pies did the club make? Write an equation and solve.