Jack made three pies. If each piece was cut into eight pieces, and they had a total of 72 pieces to sell, how many pies did jill sell?