The distance from the sun to the earth is approximately 150 million km.
To convert this to meters, we can multiply by 1,000 to get 150 billion meters (1 km = 1000 m).
Using the speed of light of 300 million m/s, we can calculate the time it takes for light to travel from the sun to the earth by dividing the distance by the speed of light:
Time = Distance / Speed of light
Time = 150,000,000,000 m / 300,000,000 m/s
Time = 500 seconds
Therefore, it takes about 500 seconds or 8.3 minutes for a beam of light to travel from the sun to the earth.