The mid point of the ladder, 5/2=2.5m from the base, is at the top of the wall.
That becomes the hypotenuse of a right triangle with height = 2.2 m.
The distance of the base of the ladder from the wall can therefore be calculated using the Pythagoras Theorem., namely
D=sqrt(2.5^2-2.2^2)=1.1874m
compared to safety guidelines of 0.8-0.9 from the wall.
This means that the ladder does not conform to the safety guidelines.