Greenhouse gases function by
(a) blocking sunlight but letting out heat from Earth to outer space.
(b) absorbing heat that radiates from Earth that would otherwise escape to outer space.
(c) absorbing heat that radiates from the sun toward Earth.
(d) releasing heat that radiates from Earth into outer space.