Solve the system, if possible. (If the system is inconsistent, enter INCONSISTENT. If the system is dependent, enter a general solution in terms of x, y, or z.)



x + y + z = 7
2x + y + z = 14
x + 2y + 3z = 2

none of those lines is parallel, so I should be able to find a solution.

first work on the first two by elimination

x + y + z = 7
2x + y + z = 14
---------------- subtract
- x + 0 + 0 = -7
so
x = 7
well that gives us a running start
7 + y + z = 7
14 + y + z = 14
both yield
y + z = 0 so z = -y
now the last equation with x = 7 and z = -y
7 + 2 y + 3(-y) = 2
-y = -5
so
y = 5
and
z = -y = -5

To solve this system of linear equations, we can use the method of elimination or substitution. Let's use the method of elimination.

First, we'll eliminate the variable x by subtracting the first equation from the second and the third equation:
(2x + y + z) - (x + y + z) = 14 - 7
x + y = 7 ⇒ Equation 4

(x + 2y + 3z) - (x + y + z) = 2 - 7
y + 2z = -5 ⇒ Equation 5

Now we have a new system of equations:
Equation 4: x + y = 7
Equation 5: y + 2z = -5

Next, we can eliminate the y variable by multiplying Equation 4 by -1 and adding it to Equation 5:

(-1)(x + y) + (y + 2z) = (-1)(7) + (-5)
-x - y + y + 2z = -7 - 5
z = -12 ⇒ Equation 6

Substitute the value of z = -12 back into Equation 5:
y + 2(-12) = -5
y - 24 = -5
y = 19 ⇒ Equation 7

Substitute the values of y = 19 and z = -12 back into Equation 4:
x + 19 = 7
x = -12 ⇒ Equation 8

Therefore, the solution to this system of equations is:
x = -12
y = 19
z = -12

Let's check our solution by substituting these values into the original equations:
Equation 1: x + y + z = 7
-12 + 19 + (-12) = 7
-5 = 7 (False)

Equation 2: 2x + y + z = 14
2(-12) + 19 + (-12) = 14
-24 + 19 - 12 = 14
-17 = 14 (False)

Equation 3: x + 2y + 3z = 2
-12 + 2(19) + 3(-12) = 2
-24 + 38 - 36 = 2
-22 = 2 (False)

Since none of the original equations are true with the found values, this system of equations is inconsistent, and the solution does not exist.