see the figure below to better understand the problem
In the right triangle ABC
tan(34.5)=h/x -----> by TOA
h=x*tan(34.5) -----> equation 1
In the right triangle ABD
tan(27.8)=h/(100+x) -----> by TOA
h=(100+x)*tan(27.8) -----> equation 2
Equate equation 1 and equation 2
x*tan(34.5)=(100+x)*tan(27.8)
solve for x
x*tan(34.5)=100*tan(27.8)+x*tan(27.8)
x*[tan(34.5)-tan(27.8)]=100*tan(27.8)
x=329.4 ft
Find out the value of h
h=x*tan(34.5)
h=329.4*tan(34.5)
h=226.4 ft
therefore
the answer is
the height of the building is 226.4 ft