the red triangle is the building
the black triangle is the house
x is the height of the building
we have a problem of Tales triangles semblants so we can use this equalities
[tex]\begin{gathered} \frac{x}{340}=\frac{13}{40} \\ x=\frac{13(340)}{40}=110.5\text{ f}eet \end{gathered}[/tex]the height of the building is 110.5 feet