Step 1: Understanding the Concept
The system \(AX=B\) is solved by writing the three equations and solving them (or using \(X=A^{-1}B\)).
Step 2: Form A and B
Transposing, \(A=\begin{bmatrix}1&1&1\\1&-1&2\\2&1&-1\end{bmatrix}\) and \(B=\begin{bmatrix}6\\5\\1\end{bmatrix}\).
Step 3: Write the equations
\(x+y+z=6\), \(x-y+2z=5\), \(2x+y-z=1\).
Step 4: Solve
Adding the first and third equations: \(3x+2y=7\).
Adding the second and third: \(3x+z=6\), so \(z=6-3x\).
Putting in the first: \(x+y+6-3x=6\Rightarrow y=2x\).
Then \(3x+4x=7\Rightarrow x=1\), \(y=2\), \(z=3\).
Final Answer:
The solution is x = 1, y = 2, z = 3.
\[ \boxed{\text{(C) }x=1,y=2,z=3} \]