The cost in dollars of producing x toy cars is C(x) = 2.2x +…

The cost in dollars of producing x toy cars is C(x) = 2.2x + 1. The revenue for selling x toy cars is R(x) = 6.45x. To calculate profit, subtract the cost from the revenue.a. Write and simplify a function P that represents profit in terms of x.b. Find the profit of producing 40 toy cars.