A ladder 20m long rest against a vertical wall so that the foot of the ladder is 9m from the wall

does not meet the "safe ladder rule"

Is there a question?
If you want to know how far up the wall the ladder rests,
h^2 + 9^2 = 20^2
h^2 = 319
h = appr 17.9 m