tan(50) = h/d
h = d tan(50)
tan(26) = h/(d+37)
tan(26) = d tan(50) / (d+37)
cross multiply
(d+37) tan(26) = d tan(50)
d(tan(26)-tan(50)) = -37 tan(26)
d = -37 tan(26) /(tan(26)-tan(50))
d = 25.633
h = d tan(50)
h = (25.633)tan(50)
h = 30.548
https://gyazo.com/2ad655173d74ee8bb18c91bc75e16a3e