Equilibrium, consumer and producer surplus

The market settles where quantity supplied equals quantity demanded; consumer surplus is the triangle below demand and above the price, producer surplus the triangle above supply and below it, and with no market failure their sum is as large as it can be at equilibrium.

From AP Microeconomics.