What is the greenhouse effect?

a. the cooling of the earth due to air pollution
b. the warming of a planet due to trapped radiation
c. the heating of a solid rock formation due to radiation from the sun

b. the warming of a planet due to trapped radiation