A flagpole is fixed vertically on the top of a building. From a point on the ground 50 m away from the foot of the building, the angle of elevation of the top of the building is 30∘ and the angle of elevation of the top of the flagpole is 45∘.
(a) Find the height of the building.
(b) Find the height of the flagpole.