The local firemen have a 50 ft. ladder. They need to get to the top a 48 foot building. What is the maximum distance away from the building they can place the foot of the ladder so that the top of the ladder reaches the top of the building?