Solution :
Let ladder be AB, B be the window and CB be the wall. Then, ABC is a right triangle, angled at C.
\(\therefore\) \({AB}^2\) = \({AC}^2\) + \({BC}^2\)
So, \({10}^2\) = \({AC}^2\) + \(8^2\)
or \({AC}^2\) = 100 – 64
\(\implies\) \({AC}^2\) = 36
\(\implies\) AC = 6 m