The orientation of the ladder with the wall forms a right triangle. The ladder length is the hypotenuse of the triangle, the distance between the ladder at ground level and the base of the wall is the horizontal leg of the triangle, the height of the ladder is the vertical leg of the triangle.