A = [2 1 1; 1 -1 -1; 1 2 1];
b = [3; 0; 0];

x=inv(A)*b;
disp("Inverse of A =");
disp(inv(A));
disp("x=");
disp(x);