I can't calculate the length $x$ in this diagram. What is $x$?

I think some people misunderstood the question. Please see below picture.

To be frank, I tried to use two Pitagoras' formula as below (like others). $$x^2 + y^2 = 3$$ $$x^2 + (y+\sqrt 3)^2 = 2^2$$ substituting $y^2 = 3 - x^2$, (or $y = \sqrt(3-x^2)$, $$x^2+y^2+2\sqrt3y+3 = 4$$ $$x^2+3-x^2+2\sqrt3\sqrt{3-x^2}=1$$ $$2+2\sqrt3\sqrt{3-x^2}=0$$ $$1+\sqrt{9-3x^2}=0$$ This is unsolvable? What's wrong?
EDIT : I realized too late that the triangle is acute. when three sides are equal, they are 60 degrees. Even if two sides are $\sqrt3$, they are still acute(by comparison of $c^2$ and $a^2+b^2$ as A. Pongrácz told me. How stupid I was..
It is just two pythagorean theorem: