I explain how to solve a system of linear equations using matrix algebra. I use the reduced row echelon form of the matrix of coefficients (RREF). An example for each of the three cases.is poresented. Unique solution, no solution, and infinite solution. We solve the problems using R.