To calculate the time it takes for sound to travel 2 kilometers, we can use the formula:
\[ \text{Time} = \frac{\text{Distance}}{\text{Speed}} \]
Given:
- Distance = 2 kilometers = 2000 meters
- Speed of sound in air = 340 m/s
Now, substituting the values into the formula:
\[ \text{Time} = \frac{2000 \text{ meters}}{340 \text{ m/s}} \approx 5.88 \text{ seconds} \]
Rounding this to one decimal place gives us approximately 5.9 seconds.
Thus, the answer is 5.9 seconds.