In this particular problem you know that x is equal to it's vertical angle, which sums to 180 with the other two angles given. You need to know the vertical angle property, and the triangle sum property. With practice it'll be easier to recognize what to use in order to find x with the information given.