How do you solve for x

Answer:
[tex]x=\sqrt{30}[/tex]
Step-by-step explanation:
You can use the right triangle altitude theorem, which "describes a relation between the lengths of the altitude on the hypotenuse in a right triangle and the two line segments it creates on the hypotenuse." (taken from wikipedia)
Based on it, we do this:
[tex]x^2=6\cdot5=30\\ x=\sqrt{30}[/tex]