The interior angles of any triangle sum to 180°, so
(12x + 2) + 26x + (6x + 2) = 180
44x + 4 = 180
44x = 176
x = 176/44 = 4