Describe how the rank of a matrix can be used to determine if a system of equations has one solution or an infinite number of solutions.