Let's first get a sketch that represents this situation.
Here,
L represents the laddder
B represents the building
F represents the floor(distance between the base of the ladder and the building).
We have the equation, use pythagoras theorem:

To find the distance between the base of the ladder and the building, rewrite the formula above for f.
Thus, we have:
![\begin{gathered} f^2=l^2-b^2 \\ \\ f=\sqrt[]{l^2-b^2} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/iaedpcu7vzk6vy7kxod6tsjem6gyosc23n.png)