Solving a 6-Variable Equation with Square Roots for X

I hope I'm in the right forum, since I'm trying to solve for x.

I have an equation with 6 variables (a through e and x):

$\displaystyle \frac{-d+\sqrt{d^2+2xa}}{x}=\frac{-e+\sqrt{e^2+2b\sqrt{c^2-x^2}}}{\sqrt{c^2-x^2}}$

and I need to know what x is in terms of the other 5 variables.

When d=0 and e=0 (which is sometimes but not always true):

$\displaystyle \frac{\sqrt{2xa}}{x}=\frac{\sqrt{2b\sqrt{c^2-x^2}}}{\sqrt{c^2-x^2}}$

I was able to solve for x:

$\displaystyle x=\frac{ac}{\sqrt{b^2+a^2}}$

However, when it's not true that d=0 and e=0, those addends throw me off (they make it harder to just square the sqrt's away). I find myself bumbling around back and forth, and I feel like there's some rule or simplification that I'm not applying.

Can anyone lend some advice?

I got this far and realized I don't know what to do:

$\displaystyle (-d+\sqrt{d&2+2xa})(\sqrt{c^2-x^2})+2xe=\frac{2x^2b}{-d+\sqrt{d^2+2xa}}$