Solving Systems of Equations with no solution or Infinite Solutions