The height of the adjacent building is = AB +BC + CD
We know that BC = height of Sam = 5 feet
CD = height of Sam’s building = 50 feet
Consider the right triangle ∆ABO,
∠ABO = 90°
It is given that, OB = Distance between the buildings = 50 feet
Therefore, ABOB=tan30°
AB = OB×tan30∘
= 50√3 feet
Therefore the height of the adjacent building = 50√3 + 50 + 5 = (55 + 50√3)
= (55 + 50√33) feet
= (55 + 50√3) feet