From the top of a building, the angle of elevation of the top of a tower is \( 60^\circ \). From the top of the building, the angle of depression of foot of the tower is \( 45^\circ \). If the height of the tower is 40 metres, then prove that the height of the building is \( 20(\sqrt{3} - 1) \) metres.