First let's make a graph to understand the situation.
Now let's calculate the value for x, using the trigonometric relation of the tangent.

In a similar way we will calculate the value of y

The total height of the building would be the sum of the x and y values.

To the nearest tenth of a foot, the building is 316.1 feet tall.