Consider a firm that produces output at total cost of c(q) = 2q and
faces a downward-sloping demand curve given by p(q) = 4 - q. Assume
that the firm can perfectly differentiate consumers and charge them
their willingness to pay for the good. Calculate the firm’s
profit.