A school class is saving money for a classtrip and therefore sell cakes. The function $f(x)=x(x-25)(x-15)$ describes how much money the class saves in total for selling cakes.
f(x) is the total amount of sum in dollars and x is what they earn per cake. Their teachers said that they cant sell a cake for more than 15 dollars but not more. How much money should they ask per/cake to earn as much as possible?
This is what I did: $$x(x^2-15x-25x+375)$$ $$x(x^2-40x+375)$$ $$x^3-40x^2+375x$$ Then derivate $= 3x^2-80x+375$. Then $3x^2-80x+375=0$ to find maximum but I cant divide $80/3$, what more can I do to answer the question?