X + 12 + X - 6 = X + 50
2X + 6 = X + 50
X = 44
44 + 50 = 94
To check you can substitute X into the problem.
44 + 12 = 56
44 - 6 = 38
56 + 38 = 94
94 = 94