yes i know the law of cosines.
the X is the side of triangle.

There are three triangles in which
x2 can be found as functions of angles
α, β, γ, using the Law of Cosines.
A fourth equation is
........α+β+γ=2π
In principle, that is four (independent) equations in four unknowns, so a solution exists.
How to find the solution requires either trig, geometric construction, or lucky guesswork. Part of the trickiness may be how to construct a 3-4-5 triangle, in which you would recognize the angle between sides of 3 and 4 is is a right angle.
I started looking at it from the trig point of view.
Note that
α=2π−(β+γ), from which
.........cosα=cos(β+γ)=cosβcosγ−sinβsinγ
That leads to some complicated algebra, but might lead to an equation for
x in closed form.
It is also true that
.........sinα=−sin(β+γ)=−(sinβcosγ+cosβsinγ)
[I don't know if that is any help or not.]
Did you look up the geometric solution that Denis found?
Denis said:
A hint from that solution is that
α=90°+60°=150°. If you can prove that somehow, then the problem is solved.
These are only some musings -
what have YOU tried?