Solves equations.