Assignment:
The total profit (in dollars) for sales of x rowing machines is given by P(x) = -0.2x^2 + 300x - 200. What is the profit if 500 are sold? For what value of x will the profit be at a maximum?
Provide complete and step by step solution for the question and show calculations and use formulas.