find the pair of equal sets