The ladder, the wall, and the ground form a right triangle, where the ladder is the longest side (hypotenuse).
The trigonometric ratios stand on right triangles and can be used to relate side lengths with angles.
The angle of elevation, formed by the ladder and the ground has the height of the wall as the opposite side. Thus we can use the sine ratio, defined as: