You effectively have a right angled triangle split into a smaller right angled triangle, and an irregular triangle. first you can work out the angles inside the iregular triangle.

Next you can use the sine rule to find the hypotenuse of the smaller right angled triangle:

then the height of the building h is given by: