How does one calculate the market equilibrium of an economy or industry?