Math Problem Statement

Sweet Dreams Bakery sells apple, cherry, and pumpkin pies. Yesterday, the bakery sold 12 more apple pies than cherry pies, and 5 more cherry pies than pumpkin pies. Each pumpkin pie is cut into 18 slices. Sweet Dreams Bakery sold 12 pumpkin pies yesterday. How many pies did Sweet Dreams Bakery sell in all yesterday?

Solution