Here we need to find out the depth of the canyon . When you will scream after seeing a snake , the sound produced will travel till the end of the canyon and after hitting the end , it will travel back to you .
So if the depth of the canyon is d (say) , then the total distance travelled by the sound wave will be d + d = 2d.
And we know that the speed of the sound is approximately 340m/s in air , so we can use the formula distance=speed*time to calculate the depth of the canyon . So ,