Squares have to equal up to 360 degrees total so to solve for X what i did is this:
I added the 2 angles that they already have
62 + 38=100
Then I multiplied numbers by 15 until I got 255:
15 * 17= 255+5= 260
Then I added 260+100=360 degrees
X=17
Or you could just add the value of X+5= 22*15=360.
Either way its the same answer
Hope this helps!! :-)