An echo is heard when a sound hits any hard surface and the reflected sound reaches back to our ears.
Let the distance of the reflecting surface = d
Speed of the sound in air = 342 m/s
Time taken by an echo to be heard = 5 seconds
Total distance travelled by the sound waves = 2d