A fireman Jacob - Math Riddle

A fireman Jacob stood at the center of a ladder and was spraying water on a burning house.

He climbed up 6 rungs before the heat of the flames forced him to come down 10 rungs. Some minutes later, Jacob climb 18 rungs to the very top of the ladder.

How many rungs did the ladder have?


Explanation :  

Jacob standing on the middle rung. He goes up 6 rungs so he is now at M+6 and when he goes down 10 rungs so he is at M-4.
Jacob goes up 18 rungs so he is now at M+14 = T
14 rungs from the top, 14 rungs from the bottom, and the middle rung.