Answer
The height of the building is\[24\text{ yd}\].
Work Step by Step
The height of the building can be calculated by using the trigonometric function of a tangent as follows:
\[\begin{align}
& \text{Tan}\theta \text{ =}\tfrac{\text{Side opposite to angle}}{\text{Side adjacent to angle}} \\
& \text{Tan}38.7{}^\circ =\tfrac{h}{30} \\
& 0.80115=\frac{h}{30} \\
\end{align}\]
On multiplying both sides by 30, we get
\[\begin{align}
& h=0.80115\times 30 \\
& =24\text{ yd}
\end{align}\]