Alternatively, the area representing total profit can be obtained by subtracting the firm's total cost from its total revenue. The firm's total revenue is equal to the price of the product P multiplied by the quantity produced (and sold) Q. This is equal to the area 0-P-E-Q. The total cost of the firm is equal to the average cost C, multiplied by the quantity Q, and is represented by the area 0-C-M-Q. The difference between these two areas is the economic profit and is represented by the area C-P-E-M.