Let and have speeds of and , respectively. The and waves take and seconds to reach the position of the seismograph, respectively.
The speed of wave is given as
The speed of wave is given as
The first wave arrives before the wave.
Distance at which earthquake occur willbe,