The final matrix (in reduced row echelon form) has two non-zero rows and thus the rank of matrix is 2.
The final matrix (in reduced row echelon form) has two non-zero rows and thus the rank of matrix is 2