B) absorb heat from the sun
Explanation:
When the suns UV rays hit the earth they get absorbed by the earths surface and then remitted as infrared light. This infrared light then gets absorbed and trapped here on earth by greenhouse gasses. If we did not have any greenhouse gasses the earth would be about -18°C