Market equilibrium and firm profit