Check the final answer first, then review the worked steps.
d = 25 - 15pR(p) = p(25 - 15p)R(p) = 25p - 15p^2