Select the matching pairs.