'''

def solveEquation(self, equation):

"""

:type equation: str

:rtype: str

"""

eq = re.sub(r'(\d+)x',r'\1*x',equation)

eq1 = eq.replace("=","-(")+")"

c = eval(eq1,{'x':1j})

if c.imag==0:

if c.real==0:

return "Infinite solutions"

else:

return "No solution"

r=-c.real/c.imag

return 'x='+str(int(r))

'''