The formula to calculate the time is distance divided by speed. The distance is 45 km, which is equal to 45000 m. The speed of the P wave is given as 5000 m/s. So, the time taken for the P wave to reach the city is:
\[t_{P} = \frac{D}{V_{P}} = \frac{45000}{5000}
Show more…