Mr. Smith was doing repairs to a section of the wall of his house. He uses a ladder that is 6 feet tall to get to a section that needs fixing. If the foot of the ladder is 3 feet away from the base of the wall, how high up the wall will the ladder reach? Round your answer to the nearest tenth of a foot.