Let the distance be 'x' km
Therefore time taken to cover 'x' km at 24 kmph =x24 hr
Time taken to cover 'x'km at 30 kmph =x30 hr
But it is given that the difference between two timinings =9min=960 hr
∴ x24−x30=960
∴ 5x−4x120=960
⇒ x120=960
⇒ x=960×120=18
Therefore the distance is 18 km.