If two angles form a linear pair, this means that the sum of their measures is equal to 180º:

Then:

We can substitute these values in the equation above:

And solve for x:

Now, we can find the measures of the angles:

Thus, the answer is:
Graph:
Where:

The value of the variable is x = 17