The formulas below give the cost and revenue functions for a company that manufactures and sells a certain product.

Cost C(x) = 24,000+19x

Revenue R(x) = 31x
Determine the profit function for the company.