In order to have similar triangles, the interior angles must be congruent
Also, we need to remember that the sum of the interior angles of a triangle is 180
The missing angle (a) of the triangle with interior angles of 54° and 63 °
a=180-54-63
a=63
Therefore the only value for x is 63° in order to have similar triangles