the ladder is the hypotenuse and the side of the building and distance from the building are the legs , so the Pythagorean Theorem applies
9.8^2 = 3^2 + d^2 d = 9.33 m = distance up the side of the building
if Jost is able to stand most of the way up the ladder he will be able to reach a bit less than 9.33 + 1.2 + his arm length =~~ 10.5 m
the top of the window is at 9.8 m + 1.2 = 11 m
it is unlikely Josh will be able to clean to the top of the windows without a tool extension handle of some kind !