Example 4: A ladder 7 feet from the base of a building reaches a window that is 24 feet high, how long is the ladder?