The short answer is that it takes sunlight an average of 8 minutes and 20 seconds to travel from the Sun to the Earth.
We (earth) orbit the Sun at a distance of about 150 million km. Light moves at 300,000 kilometers/second. Divide these and you get 500 seconds, or 8 minutes and 20 seconds.
This is an average number. Remember, the Earth follows an elliptical orbit around the Sun, ranging from 147 million to 152 million km. At its closest point, sunlight only takes 490 seconds to reach Earth. And then at the most distant point, it takes 507 seconds for sunlight to make the journey.