(a) Show that if the profit $P(x)$ is a maximum, then the
marginal revenue equals the marginal cost.
(b) If $C(x)=16,000+500 x-1.6 x^{2}+0.004 x^{3}$ is the
cost function and $p(x)=1700-7 x$ is the demand
function, find the production level that will maximize
profit.