Question: when are gains from trade maximized?
Answer: This equation tells us that if the price is P0, CS is maximized when the quantity sold is on the demand curve at P0—that is, when all consumers whose willingness to pay is greater than or equal to P0 participate in the market.