Answer:
Step-by-step explanation:
The tangent function of an angle in a right triangle is the ratio of the opposite side to the adjacent side. Here, the adjacent side is 500 ft, so we have ...
tan(24°) = (building height)/(500 ft)
building height = (500 ft)tan(24°) ≈ 222.61 ft
__
Similarly, the height to the top of the flagpole is ...
total height = (500 ft)tan(27°) ≈ 254.76 ft
The length of the flagpole is the difference of these heights:
flagpole length = 254.76 ft -222.61 ft = 32.15 ft
The height of the building is 222.61 ft; the length of the flagpole is 32.15 ft.