From a certain distance, the angle of elevation to the top of a building is 17 degrees. At a point 50 meters closer to the building, the angle of elevation is 31 degrees. Find the height of the building.
Use the law of Sines or the Law of Cosines