A 50 -foot ladder is leaning against a building. The base of the ladder is 30 feet from the side of the building. How high does the ladder reach along the side of the building?