Answer: this problem has only trivial solutions, with all points on the same line. x=5 or x=7/5.
Explanation:
There are three triangles, and three unknowns: x, y=length of middle segment, and z=cos(angles marked with red arc).
We need

and law of cosines,

The three equations are



See attached image for solution.