## EXPERT ANSWER

**———————-Matlab Code————————**

```
clc; clear; close all;
A = [3 3 4; 1 1 4; 2 5 4];
b = [2 -2 3]';
% Cramer's Rule
A1 = A;
A1(:,[1])=b;
x=det(A1)/det(A)
A2 = A;
A2(:,[2])=b;
y=det(A2)/det(A)
A3 = A;
A3(:,[3])=b;
z=det(A3)/det(A)
% Comparing answers with rref
rref_mat = rref([A b]);
% Getting the last column from the above matrix
% It contains the values of x, y, z
sol = rref_mat(:,end)
```

**———————-Screenshots————————**