How does the market determine the price and the quantities supplies and demanded?