A perfectly competitive firm faces a market price of $10 for its output X. It owns two plants, A and B, whose total costs are TCA = 10 + 2X + .25X2 (to the second power) TCB = 15 + .4X + .1X2 (to the second power).
How many units should each plant produce to maximize profit at that price?