It is important to note that
1. The snake has entered the hole when its tail just comes into the hole. It is given that 15 seconds elapse from the time the snake's head enters the hole till its tail enters. Thus,
Length of the snake = Distance traveled in 15 seconds
= (5 cm/s) × (15 s) = 75 centimeters.
2. The snake has exited the hole when its tail just leaves the hole. The distance traveled from the time the snake's tail just enters the hole till its tail just leaves the hole equals the length of the hole. Thus,
Time for the snake to exit the hole after entering it =
Length of the hole / Speed = (5.35 m) / (5 cm/s) = (535 cm) / (5 cm/s) = 107 seconds.
Food for thought:
Are there any inaccuracies in the answers above? Does it matter that the bodies of snakes are usually wavy and not straight when they move?