Solution:
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 16 seconds elapse from the time the snake's head enters the hole till its tail enters. Thus,
Length of the snake = Distance traveled in 16 seconds
= (5 cm/s) × (16 s) = 80 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 m) / (5 cm/s) = (500 cm) / (5 cm/s) = 100 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?