If John walks up an escalator at a rate of one step per second, 12 steps take him to the top. If John goes up at two steps per second, he reaches the top in 20 steps.

How many steps are there on the escalator?

Inspired by A. Dunn, Mathematical Baffles, Dover Publications, 1980, p 17