If the answer is in fact 180 meters, then I think I know one way to solve this problem. It is helpful to create a diagram of where the deer is when the train approaches that sort of looks like this:
E____________________D______________W________T2_______________T1
Where E represents the east end of the tunnel, D represents the deer's position in the tunnel, and W represents the west end of the tunnel. T1 represents the train when the deer first sees it approach. T2 represents the train’s position when the deer arrives at W, the western entrance of the tunnel.
We are told that the deer arrives at the west end of the tunnel when the train is 20 meters away from the west end of the tunnel. Further, we are told that if the deer runs towards the east end of the tunnel, the deer would be hit by the train at the east end of the tunnel.
To make things simpler, let the distance between T2 and T1 equal X, and let the distance between D and E equal Z.
We are trying to find the total length of the tunnel. From the above information, we know that
Total length = ED + DW
Total length= Z + 80
Let y equal the rate at which the deer runs. We know that the train is moving 10 times faster, so let the train’s rate equal 10y.
In the first situation, where the deer runs towards the train, set up a rate time distance table like the one below. Since the deer is running towards the train, ADD rates and distances, and leave time the same.
Rate Time Distance (meters)
Deer y t 80
Train 10y t X
Total 11y t 80+X
Plug in a simple number for y. Let y= 1 m/s. Solve for X and t.
Rate Time Distance
Deer 1 80 sec 80 m
Train 10 80 800 m
Total 11 80 880 m
In the second situation, the deer runs AWAY from the train. So, subtract the deer’s rate from the train’s rate, and subtract the deer’s distance from the train’s distance. Note that in this situation, the train must cover the additional distance of 20 meters, plus the distance from the deer’s original position to the western tunnel entrance (80 meters), plus the distance from the deer’s original position to the eastern tunnel entrance (Z). We know from the first scenario that X= 800 meters when the Deer’s rate= 1 m/s.
Rate Time Distance
Deer 1 t2 Z
Train 10 t2 Z+80+20+X
Total 9 t2 100+800
Solve for t2:
9 (t2) = 900
t2 = 100
Then plug in t2 to either the deer or the train’s rate equation.
Deer: 1 (t2) = Z
100 = Z
Add 80 meters to Z to find the total length of the tunnel
Total length= Z+80 = 180