
Arturo O. answered 05/26/20
Experienced Physics Teacher for Physics Tutoring
I assume the measurements are from the top of building A. Draw a picture and note that the height h1 from the top of building A to the top of building B satisfies
h1 / 50 = tan18°
Similarly, the height h2 from the bottom of building B to the top of building A satisfies
h2 / 50 = tan40°
So the height of building B is
h1 + h2 = 50 tan18° + 50 tan40° = 50(tan18° + tan40°) = ? feet