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
TCB = 15 + .4X + .1X2
= 15 +4 + 10
= 29
How many units should each plant produce to maximize profit at that price?