The ladder forms a right-angle triange with the ground and the wall.
Looking at the angle between the ladder and the ground, this means the ladder is the hypotenuse, the wall is the opposite side, and the ground is the adjacent side.
We know the length of the ladder (18 ft) and the height of the wall (17.3 ft), so we know the hypotenuse and opposite side lengths, so we can use sin to calculate what the angle between the ladder and the ground would have to be.
\(\sin(\theta)=\frac{opposite}{hypotenuse}\)
\(\theta=\arcsin(\frac{opposite}{hypotenuse})\)
\(\theta=\arcsin(\frac{17.3}{18})\)
\(\theta=74.0^{\circ}\)
74 is less than 75, so the ladder will be safe.