Write the system of equation as a matrix equation of the form AX=B

X1-2x2+6x3=-5
-2x1+3x2
x1+x2+7x3=-6

The given system of equations can be written in matrix form AX = B as follows:

⎡ 1 -2 6 ⎤ ⎡ x1 ⎤ ⎡ -5 ⎤
⎢ -2 3 0 ⎥ ⎢ x2 ⎥ = ⎢ ⎥
⎣ 1 1 7 ⎦ ⎣ x3 ⎦ ⎣ -6 ⎦