Profit, or the surplus money after your costs are covered, is Revenue - Costs.
so in this case the profit P(x) = R(x) - C(x).