At the optimal quantity of a public good:

marginal benefit equals marginal cost.