P = 12 and MC = 2 + 2Q give Q = 5. Revenue is 60, VC = 10 + 25 = 35, TC = 135, and profit is −75.
What is this lesson explaining?
Perfect competition has many buyers and sellers of identical products, with each firm too small to affect price. Thus marginal revenue MR equals P. Choose output to maximize TR−TC, not sales.
An interior solution typically has P = MC on increasing MC, but compare it with Q = 0. When fixed cost is unavoidable over the horizon, operate if revenue can cover VC and shut down if P is below minimum AVC. A reported loss alone does not settle the decision.