A company's revenue, $R(x)$ in dollars, from the sale of $x$ doghouses is given by $R(x)=60 x$. The company's cost, $C(x)$ in dollars, to produce $x$ doghouses is $C(x)=45 x+6000$
a) Find the profit function, $P(x),$ that describes the company's profit from the sale of $x$ doghouses.
b) What is the profit from the sale of 300 doghouses?