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