A ladder 10m long reaches a window 8m above the ground. Find the distance of the foot of the ladder from the base of the wall.