solve x

-x + 2y = 6
6y = x + 18

To solve for x, we can rearrange the equations:

From the first equation, we have:
-x = 6 - 2y.

From the second equation, we have:
x = 6y - 18.

Now we can substitute the second equation into the first equation:

-(6y - 18) = 6 - 2y.

Simplifying, we get:
-6y + 18 = 6 - 2y.

Adding 6y to both sides, we have:
18 = 6y - 2y + 6.

Combining like terms, we get:
18 = 4y + 6.

Subtracting 6 from both sides, we have:
12 = 4y.

Finally, dividing by 4, we find:
y = 3.

Now we can substitute this value of y into either equation. Let's use the first equation:

-x + 2(3) = 6.

Simplifying, we have:
-x + 6 = 6.

Subtracting 6 from both sides, we get:
-x = 0.

Multiplying by -1 on both sides to solve for x, we find:
x = 0.

Therefore, the solution is x = 0 and y = 3.