Mary and John have both completed a trip up an escalator. John took 15 steps on the way up and took 12 seconds to reach the top. Mary took only 7 steps and took 18 seconds to reach the top. How many steps does the escalator have in total?
Let the number of steps be x.
then John goes up x-15 steps in 12 seconds
and Mary ....
You can finish it.