A 10 ft long ladder has one end that leans against a wall and another that rests on the ground 6 feet from the wall. How high on the wall does the ladder rest?