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?