Step 1: Understanding the Concept:
We have two matrix equations in \(A\) and \(B\). Matrices of the same order can be added and subtracted entry by entry, so we can treat them like two ordinary equations and solve by adding and subtracting.
Step 2: Add the Two Equations:
\[ (A+B)+(A-B)=2A \] \[ 2A=\begin{pmatrix} 1 & 0 & 2 \\ 2 & 2 & 2 \\ 1 & 1 & 2 \end{pmatrix}+\begin{pmatrix} 1 & 4 & 4 \\ 4 & 2 & 0 \\ -1 & -1 & 2 \end{pmatrix}=\begin{pmatrix} 2 & 4 & 6 \\ 6 & 4 & 2 \\ 0 & 0 & 4 \end{pmatrix} \]
Divide every entry by 2: \[ A=\begin{pmatrix} 1 & 2 & 3 \\ 3 & 2 & 1 \\ 0 & 0 & 2 \end{pmatrix} \]
Step 3: Subtract the Second Equation from the First:
\[ (A+B)-(A-B)=2B \] \[ 2B=\begin{pmatrix} 1 & 0 & 2 \\ 2 & 2 & 2 \\ 1 & 1 & 2 \end{pmatrix}-\begin{pmatrix} 1 & 4 & 4 \\ 4 & 2 & 0 \\ -1 & -1 & 2 \end{pmatrix}=\begin{pmatrix} 0 & -4 & -2 \\ -2 & 0 & 2 \\ 2 & 2 & 0 \end{pmatrix} \]
Divide every entry by 2: \[ B=\begin{pmatrix} 0 & -2 & -1 \\ -1 & 0 & 1 \\ 1 & 1 & 0 \end{pmatrix} \]
Step 4: Check the Result:
Adding the first rows of \(A\) and \(B\) gives \(1+0,\ 2-2,\ 3-1=1,\ 0,\ 2\), which matches \(A+B\). Subtracting gives \(1-0,\ 2+2,\ 3+1=1,\ 4,\ 4\), which matches \(A-B\). The other rows check in the same way.
Final Answer:
The required matrices are
\[ \boxed{A=\begin{pmatrix} 1 & 2 & 3 \\ 3 & 2 & 1 \\ 0 & 0 & 2 \end{pmatrix},\quad B=\begin{pmatrix} 0 & -2 & -1 \\ -1 & 0 & 1 \\ 1 & 1 & 0 \end{pmatrix}} \]