This answer gives the correct total revenue, but not the right number of items sold. There should be 39 pies altogether, not 37. The correct equations with which to start the problem are:

(A)

(B)