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

(A)

(B)