Total profit P is defined as total revenue R minus total cost​ C, and is given by the function P(x)=R(x)−C(x). Find the total profit​ P(x) when ​R(x)=126.98x−0.5x2 and C(x)=3809.40+0.7x2.