Atmosphere Unit Test i need the right answer

Which statement best explains how atmospheric gases affect Earth's average temperature?(1 point)
Responses

The gasses warm Earth by trapping heat energy in between Earth and Earth's atmospheric layers.
The gasses warm Earth by trapping heat energy in between Earth and Earth's atmospheric layers.

The gases cool Earth by allowing most of the Sun's heat to escape into space.
The gases cool Earth by allowing most of the Sun's heat to escape into space.

The gasses cool Earth by decreasing the precipitation formed in the atmosphere.
The gasses cool Earth by decreasing the precipitation formed in the atmosphere.

The gasses warm Earth by allowing all Sun rays to travel to Earth's surface.
The gasses warm Earth by allowing all Sun rays to travel to Earth's surface.

The gasses warm Earth by trapping heat energy in between Earth and Earth's atmospheric layers.

is that right

Sorry for the confusion in my previous response. The correct answer is: The gases warm Earth by trapping heat energy in between Earth and Earth's atmospheric layers.