Solves series of equations