Because the angles in the given diagram make up a straight line, we know that they are supplementary.
Since the angles are supplementary, we know that the sum of their measures should equal 180^(∘). We can solve for x by creating an equation using the values for the two angles and their sum.