What is the value of x in the solution to the following system of equations?
x − 2y = 2
3x + y = 6
x − 2y = 2
3x + y = 6