Draw separate diagrams of the triangles KBF,KCG and KCB. IN triangle KBF tan30=h/BK. In triangle KCG tan45=h/CK. In triangle BCK use cosine rule to express BK^2

Substitute BK and CK from the first two into the last one and solve a quadratic to get the result.