Let's take the length of the ladder and the wall be x.
The formula of pythagoras theorem is,
Hypotenuse2 = Perpendicular2 + Base2
c2 = a2 + b2 (Here Hypotenuse is c, Perpendicular is b and Base is b)
x2 = (x-3)2 + 92
By Solving the equation, we get
x = 15 m.
The correct option is (A)