Solving equations and comparing solutions