Select the matching pairs