Let h be the height of the lighthouse and x and y be the horizontal distances from the base to the two stations. The total distance between the stations is a, so x plus y equals a. Using the trigonometric ratios for the angles of depression, cot alpha equals x over h and cot beta equals y over h. Adding these two equations gives cot alpha plus cot beta equals (x plus y) over h, which simplifies to cot alpha plus cot beta equals a over h. Solving this equation for h gives the height of the lighthouse as a divided by (cot alpha plus cot beta).