When the three sides of a triangle is known and you are looking for one of the angles, you make use of the cosine formular which states that

; where A is the angle you are looking for (i.e. in this case x), a is the side opposite the angle you are looking for and b & c are the other sides of the triangle.
Therefore,
