Determining market equilibrium price and quantity