a ladder is leaning against a building so that the distance from the ground to the top of the ladder is 1 ft 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 3 ft