The average distance between Earth and Mars is about 225 million kilometers (140 million miles), depending on their relative positions in their orbits. Since the speed of light is approximately 299,792 kilometers per second (186,282 miles per second), we can calculate the time it would take for light to travel from Earth to Mars.
To determine the time it takes, we divide the distance between Earth and Mars by the speed of light:
Time = Distance / Speed
Time = 225,000,000 km / 299,792 km/s
This calculation gives us approximately 750 seconds, or 12.5 minutes. Therefore, if we could travel at the speed of light, it would take about 12.5 minutes to reach Mars. However, it's currently not possible for humans or spacecraft to travel at the speed of light due to the limitations imposed by our current technology and the laws of physics.