Multiplying the two pieces of the function together:

. This is a quadratic function, and since the coefficient of
x² is negative we know it is opening downward and thus has a maximum. We can find the maximum by finding the vertex. First we find the axis of symmetry:

. This tell us there will need to be 3 $5 decreases in price, or a $15 decrease, to maximize the function. $50-$15=$35.
We now plug our 3 in for
x in our function:

If they decrease the price their total revenue will be $30,625.
Looking at the function we know that they sell an extra 125 yearbooks for every $5 decrease in price. There were 3 $5 decreases, so 3(125) = 375 extra yearbooks. Add this to the original 500 and we have 375+500=875 yearbooks.