4.0 s is the time between the shout and the echo, so it corresponds to the time it takes for the sound wave to travel from our mouth to the wall of the canyon, and then to come back. If we call L the width of the canyon, it means that t=4.0 s is the time the sound wave takes to cover a distance of 2L. The speed of sound at

is v=343 m/s, so we have:

from which we find L:

So, the distance of the canyon wall from us is 686 m.