input: Write a python function to solve a linear equation in the format 'ax + by = c'.
  assert solve_equation('2x + 3y = 5') == (0.5, 1.0)
  assert solve_equation('4x + 2y = 10') == (1.0, 3.0)
  assert solve_equation('1x + 1y = 2') == (0.5, 1.5)
output: def solve_equation(equation):
      import re
      from sympy import symbols, Eq, solve
      
      # Extract coefficients and constant using regex
      match = re.match(r'(\d+)x \+ (\d+)y = (\d+)', equation)
      if not match:
          raise ValueError("Equation format is incorrect")
      
      a = int(match.group(1))
      b = int(match.group(2))
      c = int(match.group(3))
      
      # Define symbols
      x, y = symbols('x y')
      
      # Define the equation
      equation = Eq(a*x + b*y, c)
      
      # Solve the equation
      solution = solve(equation, (x, y))
      
      # Extract solution values
      x_value = solution[x]
      y_value = (c - a*x_value) / b
      
      return (float(x_value), float(y_value))