It takes light from the moon's surface approximately 1.3 seconds to reach the Earth. This is also the amount of time it takes for sound to travel from the Earth to the moon. That means that communication from the Earth to an astronaut on the moon has a 2.6-second delay.
The moon's distance from the Earth varies, but the average distance is approximately 240,000 miles. The sun is much further away at 93 million miles. It takes approximately 8.3 minutes for light from the sun to reach the Earth. In comparison, the sun's light takes roughly 5.5 hours to reach Jupiter.