see the diagram below. the black rectangle is the short building, the gray rectangle is the tall building.

they are 300 feet apart. and the angle of elevation is 10 degrees. thus we can use the tangent ratio to find BC.

Now,

So, the height, h, of the taller building is given by:

i suppose you can take it from here