We would start by sketching a diagram of what the question described. This is shown below;
The ladder is shown as line AC (resting on the wall).
The wall is shown as line AB.
The distance from the wall to the base of the ladder will be line BC.
Line BC would be calculated using the Pythagoras' theorem as follows;
The base of the ladder will be 7.2 feet from the wall.