Answer:
Step-by-step explanation:
The greenhouse effect is a process where energy from the sun readily penetrates into the lower atmosphere and onto the surface of Earth and is converted to heat, but then cannot freely leave the planet. Due to the presence of certain greenhouse gases that trap heat, like carbon dioxide, methane, water vapor, and CFCs, the atmosphere retains the sun's radiation and warms up the planet.
moon does not have the ability to trap the sun's heat, so it is cool even if they are similar distances from sun