x + y + 2z = 2
3x + 4y - z = 25
4x - y + 3z = -7
Multiply the first equation by -3 and add the result to the second equation.
Multiply the first equation by -4 and add the result to the third equation.
x + y + 2z = 2
y - 7z = 19
-5y - 5z = -15
Multiply the second equation by 5 and add the result to the third equation.
x + y + 2z = 2
y - 7z = 19
-40z = 80
So, from the third equation, we see that z = -2.
Back substitute into the second equation: y - 7(-2) = 19. So, y = 5.
Back substitute into the first equation: x + 5 + 2(-2) = 2. So, x = 1.
Solution: (1, 5, -2)