Concerning market failures, what divergences arise between equilibrium output and efficient output when:

(a) negative externalities.
(b) positive externalities are present?

How might government correct these divergences?