Answer: 10
Step-by-step explanation:
By the geometric mean theorem, if we let the length of the altitude to the hypotenuse be [tex]y[/tex], this means that [tex]y^{2}=84 \longrightarrow y=\sqrt{84}[/tex].
So, by the Pythagorean theorem, [tex]x=\sqrt{(\sqrt{84})^{2}+4^{2}}=\boxed{10}[/tex]