First of all, we draw the buildings..
We need to find the value of x, yellow color in the draw... to do that, I need to apply
[tex]\tan A=\frac{y}{x}[/tex]The value of y, will be:
[tex]\begin{gathered} y+480=654 \\ y=654-480 \\ y=174 \end{gathered}[/tex]Finally, with the value of A=42 and y = 174
[tex]\begin{gathered} \tan 42=\frac{174}{x} \\ x=\frac{174}{\tan 42}=\frac{174}{0.9}=193.33 \\ x=193.33 \end{gathered}[/tex]And the building A is 193.33 feet until the building B.