The figure for the triangle is,
Consider the triangle ABD and triangle ABC.
So triangle ABD is similar to triangle CBA. So ratio of sides of triangle are equal.
Determine the length of AB by using the ratio of sides.
Consider the triangle ABD.
Determine the value of x by using the pythagoras theorem
So value of x is,