It would be helpful you draw the figure of the problem statement. You would see that a right triangle is made from the statement where the hypotenuse is equal to the length of the ladder which is 27 ft and the base is equal to 14 ft. We use trigonometric functions to solve this.
sin (theta) = 14 / 27
theta = 31.23 degrees