$c = \sqrt{a^2 + x^2} + \sqrt{(b - x)^2 + (a - x)^2}$
Reformulated as a quartic equation:
$x^4 + (-a - b)x^3 + (a^2 + ab + 2b^2 - c^2)x^2 + (-ab^2 - b^3)x + (-a^2c^2 + b^4 + c^4) = 0$
Is there an expression for $x$ (always positive) which is solvable if $a$, $b$, and $c$ are known?
Background: In Grasshopper, I have a rectangle of known dimensions and two joined lines $DE$ and $EF$ as below, the sum of the lengths of which is known. I'd like to find the length of $AE$ or $CF$, or one of the angles $ADE$ or $EDC$ where $AE = CF$ (any of these will yield the rest).

As far as I know, there is no Grasshopper component (outside of custom VB, Python or C# components which are beyond me at the moment) which will return an array of values for two variables where a given equation holds true, so I think I have to find one of the above (length of $AE$ or $CF$, or one of the angles $ADE$ or $EDC$) using a single expression. I also want to avoid using Grasshopper to test a range of possible values, which seems processing intensive.
Edit to add: I arrived at the equation at the top this way:
$DE = \sqrt{a^2 + x^2}$
$EF = \sqrt{(b-x)^2 + (a-x)^2}$
Letting $c$ be the sum of the lengths of $DE$ and $ED$:
$c = \sqrt{a^2 + x^2} + \sqrt{(b - x)^2 + (a - x)^2}$