what determines the price and the quantity produced of most goods?