PLZ HELP I CANT DO THIS QUESTION!!!!

Step-by-step explanation:
(A) (In the fig. triangle represented by small triangle with angle of elevation 30° and height h1 ) ( Using this explanation since the figure is not marked)
[tex]tan30 = \frac{h1}{40} [/tex]
[tex]h1 = \frac{40}{\sqrt{3} } m[/tex]
(B) (In the fig. triangle represented by small triangle with angle of depression 58° and height h2 )
[tex]tan58 = \frac{h2}{40} [/tex]
[tex]h2 = 64m[/tex]
(C)
[tex]Height \: of \: Building \: A = h2 = 64m[/tex]
[tex]Height \: of \: Building \: B = h1+h2 = (64 + \frac{40}{ \sqrt{3} } )= 87m[/tex]