The pre-tax cost function for John's Shoe Repair is C(q) = 99 + 9q - q2, and the firm faces a tax of t = 9.
a. What is the firm's profit-maximizing condition if the market price is p?
b. Also, solve for a single, profit-maximizing quantity in terms of p.