A painter is painting a mural on a wall. He has a 25-foot ladder. He needs to work on a part of the wall that is 24 feet above the ground. How far from the base of the building should he place the bottom of the ladder to make sure that the ladder reaches his work area?