A company produces x units of a product per month, where c(x) represents the total cost and r(x) represents the total revenue fo
r the month. The functions are modeled by c(x)=300x+250 and r(x)=-0.5x^2+800x-100. The profit is the difference between revenue and cost where p(x)=R(x)-C(x).
What is the total profit p(x), for the month?