input: Write a python function to solve a system of linear equations represented by the given matrix.
  assert calcSystem([[3, 2, 8], [1, -1, 0]]) == [2.0, 1.0]
  assert calcSystem([[1, 2, 3], [4, 5, 6]]) == [-1.0, 2.0]
  assert calcSystem([[2, 3, 7], [1, -1, -2]]) == [3.0, -1.0]
output: def calcSystem(matrix):
      a1, b1, c1 = matrix[0]
      a2, b2, c2 = matrix[1]
  
      determinant = a1 * b2 - a2 * b1
  
      if determinant == 0:
          raise ValueError("The system of equations has no unique solution")
  
      x = (c1 * b2 - c2 * b1) / determinant
      y = (a1 * c2 - a2 * c1) / determinant
  
      return [x, y]