A ladder, 6 m long, is resting against a wall. If the top of the ladder is 4 m above the ground, how far from the wall is the base of the ladder?