The light has a much larger speed (= 3 × 108ms-1) in comparison to the sound (= 340ms-1), therefore we can assume that the light takes negligible time and the sound takes 2 second to reach the observer.
Now speed = (Distance travelled)/(Time taken)
∴ Distance = Speed x Time
= 340 x 2 = 680m.