Keep track of both solutions.