Three times the difference of a number, X, and fourteen is six times the sum of the same number, X, and twelve. What is the value of x?