The two angles are supplementary angles and when added together equal 180 degrees.
3x -12 + x+2 = 180
Simplify:
4x -10 = 180
Add 10 to both sides
4x = 190
Divide both sides by 4
X = 190/4
X = 47.5