H = d tan 37 = (d - 250) tan 50
d tan 37 = (d - 250) tan 50
(d - 250) / d = tan 37 / tan 50
1 - 250 / d = tan 37 / tan 50
1 - tan 37 / tan 50 = 250 / d
d = 250 / { 1 - tan 37 / tan 50 } = 680
d - 250 = 430
430 - 100 = 330
Actually, this is an approximation that fails to correct for DIP, the altitude of the navigator's eye above the water as the sextant is being used.
I should say, for the benefit of MorningFoxNorth, that usually the horizon is used as the baseline for nautical altitude measurements. If the navigator were using the base of the lighthouse, instead, then the geometry of the problem changes, such that
H = sqrt(h^2 + d^2) sin q / cos[q - arctan(h/d)]
Where...
H = the vertical distance from the base of the lighthouse to its top.
h = the vertical distance of the navigator's eye above the base of the lighthouse.
d = the horizontal distance from the navigator (on the ship) to the base of the lighthouse.
q = the measured angle from the lighthouse's base to its top.
Notice that when h=0, H = d tan q