Step 1 : Write the system in matrix form
$$\begin{aligned}
2x-y &= 5,\\
x+y &= 4
\end{aligned}$$
Let $$A$$ be the coefficient matrix, $$X$$ the column of variables and $$B$$ the column of constants.
$$A = \begin{bmatrix} 2 & -1 \\ 1 & 1 \end{bmatrix}, \; X = \begin{bmatrix} x \\ y \end{bmatrix}, \; B = \begin{bmatrix} 5 \\ 4 \end{bmatrix}$$
Then $$AX = B$$ represents the given system.
Step 2 : Find the rank of the coefficient matrix $$A$$
The determinant of $$A$$ (which is the only $$2\times2$$ minor) is
$$|A| = \begin{vmatrix} 2 & -1 \\ 1 & 1 \end{vmatrix} = (2)(1) - (-1)(1) = 2 + 1 = 3$$
Since $$|A| \neq 0$$, the rank of $$A$$ is $$\operatorname{rank}(A)=2$$.
Step 3 : Find the rank of the augmented matrix $$[A\,|\,B]$$
The augmented matrix is $$[A\,|\,B] = \begin{bmatrix} 2 & -1 & 5 \\ 1 & 1 & 4 \end{bmatrix}$$.
Because $$|A| \neq 0$$, every $$2\times2$$ minor drawn from the first two columns is non-zero, and inserting the column $$B$$ cannot reduce the rank. Hence
$$\operatorname{rank}([A\,|\,B]) = 2$$.
Step 4 : Apply the consistency criterion
For a system of $$m$$ equations in $$n$$ unknowns:
- The system is consistent if and only if $$\operatorname{rank}(A)=\operatorname{rank}([A\,|\,B])$$.
- If this common rank equals $$n$$, there is a unique solution.
Here $$\operatorname{rank}(A)=\operatorname{rank}([A\,|\,B])=2$$ and $$n=2$$.
Therefore the system is consistent with a unique solution.
Step 5 : (Optional) Find the solution
Since $$|A|\neq0$$, use Cramer’s rule:
$$\begin{aligned}
|A_x| &= \begin{vmatrix} 5 & -1 \\ 4 & 1 \end{vmatrix} = 5(1) - (-1)(4) = 5 + 4 = 9,\\
|A_y| &= \begin{vmatrix} 2 & 5 \\ 1 & 4 \end{vmatrix} = 2(4) - 5(1) = 8 - 5 = 3.
\end{aligned}$$
Hence
$$x = \dfrac{|A_x|}{|A|} = \dfrac{9}{3} = 3, \qquad y = \dfrac{|A_y|}{|A|} = \dfrac{3}{3} = 1.$$
The ordered pair $$ (x,y) = (3,1) $$ indeed satisfies both equations.
Conclusion: The system is consistent and has the unique solution $$x = 3,\; y = 1$$.