A firm has a fixed cost of $5000 and a constant marginal cost of production of $500 per unit produces. What is the firm's total cost function? and average cost function? If the firm faces a demand function p=40500-2q, where p and q are the market price and quantity demanded respectively, at what level of output will this firm maximize profit? what is the level of profit per unit of output produced at equilibrium.