A 5-ft ladder rests against the side of a house. The distance between the top of the ladder and the ground is 1 ft more than the distance between the base of the ladder and the bottom of the house. Find both distances.