A ladder is leaning against a building so that the distance from the ground to the top of the ladder is 8 feet less than the length of the ladder. find the length of the ladder if the distance from the bottom of the ladder to the building is 16 feet.