To solve this problem it is necessary to apply the concepts related to the kinematic equations of linear motion. For this purpose, we will use the definition of the speed equivalent to the displacement made by a body in a fraction of time. From this definition we will relate the time and distance variables required in the problem
[tex]v = \frac{d}{t} \rightarrow t = \frac{d}{v}[/tex]
Here,
v = Velocity
d = Distance
t = Time
With our values we have,
[tex]t = \frac{2.7}{343}[/tex]
[tex]t = 0.007871s[/tex]
The speed of light is the speed at which waves move, therefore using the same formula above, but to find the distance we would have
[tex]d = ct[/tex]
Here,
c = Speed velocity
We have then,
[tex]d = (3*10^8m/s)(0.007871s)[/tex]
[tex]d = 2.3613*10^6m[/tex]
Therefore the distance between the Earth and the spaceship is [tex]2.3613*10^6m[/tex]