Answer:
20
Step-by-step explanation:
Given C(q) = 50 + 40q + q^2
Obtaining the derivative of the equation and equating it to zero, we have:
40 + 2q = 0
q = 40/2
q = 20
Therefore, the firm choose q at 20 so as to maximize its profit at the market price of p.