In a perfect market price and quantity to be bought are determined by the