Equilibrium of a Firm