According to the question, we have a right triangle formed by the ladder with the wall and the floor.
The length of the ladder is the hypotenuse and the desired height is the opposite. This is due to the fact that "the ladder makes an angle of 21" 27" with the horizontal". Then, the trigonometric ratio to use is sine: