A perfectly competitive firm, with MC=q operates in a market character,zed by the following market demand and supply conditions:
Demand: Q=20000-100P
Supply: Q=100P

How much output does this competitive firm produce to maximize profit? Show your work graphically and algebraically.