Fix any grammar flaws in this:
Fossil fuels like coal and petroleum produces a large amount of carbon-based polluting agents and greenhouse gases which contribute to global warming.
Fossil fuels like coal and petroleum have a large amount of carbon-based polluting agents and greenhouse gases, which contribute to global warming.