The height of the taller building is 50ft, the height of the shorter building is h. The difference in heights will be:
(50-h) ft
tan x=opposite/adjacent
thus
tan 8=(50-h)/200
200*tan 8=50-h
28.11=50-h
h=50-28.11
h=21.89
the height of the shorter building is h=21.89 ft