To find the value of x in a triangle, you need to subtract the sum of the two angles from 180 degrees. Know that the sum of all the angles of a triangle will always equals 180 degrees. Then write down the difference of subtracting the sum of the two angles from 180 degrees and that would equal the value of x.
I hope this helped in some way, if it didn't, im so sorry.