We know the sum of all the angles in a pentagon is 540 degrees.
Just like you would in a triangle, you would subtract all the given angles from 540 to find the missing angle. (You should get 130)
To find x, you simply subtract 130 from 180 to get x = 50.
Hope this helps! :)