The two angles are what we call a linear pair because they form a straight angle when joined.
The sum of the angles in a linear pair is 180°.
Hence, we can say that:

From this, we can solve for x.
Add x and 5x. Add -1 and 1.

Divide both sides by 6.

Therefore, the value of x is 30. (Option C).