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 14 seconds elapse from the time the snake's head enters the hole till its tail enters. Thus,
Length of the snake = Distance traveled in 14 seconds
= (5 cm/s) × (14 s) = 70 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.95 m) / (5 cm/s) = (595 cm) / (5 cm/s) = 119 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?