A firefighter stood on the middle rung of a ladder,
spraying water on a burning house.
He then climbed up 6 rungs
before the heat of the flames caused him to come down 10 rungs.
After some minutes he was able to climb 18 rungs
to the very top of the ladder.
How many rungs did the ladder have?
Total rugs in the ladder is 28.