We have to use the following expression about constant speed.
[tex]d=vt[/tex]Where v is the speed of the light and t is the time. Let's replace the given values.
[tex]\begin{gathered} d=300,000\operatorname{km}/s\cdot5\sec \\ d=1,500,000\operatorname{km} \end{gathered}[/tex]