The speed of light is 299,792,458 miles per second.
The sun's diameter is 864,327,328 miles.
If the core is in the centre of the sun, we have to get the radius (formula would be 'diameter divided by two') and multiply it by the speed of light.
Therefore 864,327,328 divided by 2 is 432,163,664 miles.
Now we have to divide the speed of light by 60 because we want to determine the minutes and not the seconds.
Therefore 299,792,458 divided by 60 is 4,996,540 (miles per minute)
Now we have to multiply the speed of light by the radius of the sun.
Therefore 4,996,540 multiplied by 432,163,664 divided by 60 would be your answer.
However I think what you were trying to say is that how long it takes for the sun's light (from the surface) to reach the Earth. If that is your question, then it is 8 minutes.