Please can somebody help me with the following problem. I am trying to find x in terms of a,b and c (as per the attached diagram). I came up with the equation below, but this has turned out quite complicated to resolve. Can anyone think of a simpler solution?

Many thanks.

x^2 = b^2 + (c - (ac/(x+a)))^2