Given, the speed of sound waves S and P are
The time gap between the waves P and S is,
The distance of the earthquake is given by the equation,
Substituting the values in the above equation, we get:
Thus, the earthquake occurs at a distance of