To explain why pursuit of self-interest necessarily leads to the the greatest social benefit, Smith invoked the law of supply and demand, which was alluded to in our discussion of competition. The law of supply and demand tempers the pursuit of self-interest exactly as competition keeps the enterprising capitalist from becoming a ruthless profiteer. The law of supply and demand similarly solves the problems of adequate goods and fair prices.