A contractor leans a 13-foot ladder against a building. The distance from the ground to the top of the ladder is 7 feet more than the distance from the building to the base of the ladder.
Find the distance from the building to the base of the ladder and the distance from the ground to the top of the ladder.