Profit can be calculated by subtracting the total cost from the total revenue.
We have the equations for Revenue and Cost, so we can calculate the profit as follows:
Profit = Revenue - Cost

The equation shown above gives the profit in terms of x number units. By replacing x with the number of units, for which we want to calculate the profit, we can directly find the profit.