x is twice the value of y can be written as:
x= 2y
then we replace x with 2y in the given equation
x - y = 6
2y - y = 6
y = 6
then to find x we replace y with 6 in either of the equations
x = 2y
x = 2(6) = 12
or
x - 6 = 6
x= 6 + 6 = 12
now find value if x + y
12 + 6 = 18