Externalities occur when the production or consumption of a good or service impacts a third party not directly involved. These…