The document discusses market failures related to public goods and externalities. It explains that public goods are non-rival and non-excludable, which causes problems in revealing demand. It shows graphically how the optimal amount of a public good is determined by the intersection of collective willingness to pay and marginal cost. The document also discusses how externalities can lead to overallocation or underallocation of resources and different policies to correct these, including taxes, subsidies and tradable pollution rights.