This gives you the correct amount of money collected, but it is not the correct total number of pies. Make sure that you start with the two equations and .