Let AB is the ladder and A is window.
Then, AB = 10 m and AC = 8 m
Let BC = x
In right ∆ABC,
By Pythagoras Theorem:
AB2 = AC2 + BC2
(10)2 = 82 + x2
100 = 64 + x2
x2 = 100 – 64 = 36
or x = 6
Therefore, Distance between foot of ladder and base of the wall is 6 m.