solve pairs