A vertical tower stands on a horizontal plane and is surmounted by a vertical flagstaff of height \(h\). At a point on the plane, the angle of elevation of the bottom of the flagstaff is \(\alpha\) and that of the top of the flagstaff is \(\beta\). Prove that the height of the tower is \(\dfrac{h\tan\alpha}{\tan\beta-\tan\alpha}\).