A ladder is leaning against a building so that the distance from the ground to the top of the latter is 1 foot less than the length of the latter find the length of the latter if the distance from the bottom of the ladder to the building is 9 feet