Factors affecting equilibrium price and quantity