We know the angles in a triangle sum to 180 degrees. Thus, we can write:

Also, we know straight line is 180 degrees. Thus we can write:

Putting these 2 equations together, we have:

Now, we substitute the known expressions for the angles and solve for x:
