A ladder leans against a vertical wall. The top of the ladder is 4m above the ground. When the bottom of the ladder is moved 1m closer to the wall, the top of the ladder rests 1m higher than the original position.

How far from the wall was the bottom of the ladder in the initial position?