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
= (6 cm/s) × (14 s) = 84 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 = (7.98 m) / (6 cm/s) = (798 cm) / (6 cm/s) = 133 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?