Start with the first equation:
y = 3x
Now, substitute this expression for y into the second equation:
-2x + (3x) = 2
Combine like terms:
-2x + 3x = 2
Simplify:
x = 2
now we found the value of x, you can use it to find the value of y by plugging it back into the first equation:
y = 3x
y = 3(2)
y = 6
The solution to the system of equations is x = 2 and y = 6.