The profit from producing and selling x units of a product can be described by the function

Question

The profit from producing and selling x units of a product can be described by the function

P(x)=-0.08x^2+360x-98000 dollars. How many units must be produced and sold to maximize profit? What is that maximum profit?

Math