Solving equations with a given solution