Here is a simple sample of my data:
I want to get the outcome. The logic is that we have 4 pairs data highlighted in different colours.
I want to get t