A = [8 2 -2; 10 2 4; 12 2 2];
b = [-2 4 6];

disp(eliminate(A,b));