Denis is correct...
One hundred steps.
Let n be the number of steps visible when the escalator is not moving, and let a unit of time be the time it takes Ted to walk down one step. If he walks down the down-moving escalator in 50 steps, then n - 50 steps have gone out of sight in 50 units of time. It takes him 125 steps to run up the same escalator, taking five steps to every one step before. In this trip, 125 - n steps have gone out of sight in 125/5, or 25 units of time. Since the escalator runs at a constant speed, we have the following linear equation that readily yields a value for n of 100 steps:
n-50 125 - n
____ = _______
To learn, read...To know, write...To master, teach...To live, play games