The equilibrium of demand and supply maximizes the sum of consumer and producer surplus.
•This is as if the invisible hand of the marketplace leads buyers and sellers to allocate resources efficiently.
•Markets do not allocate resources efficiently in the presence of market failures.