Been cracking my head for 2 days for this. Hope someone could show me some direction.
I have 4 sets of numbers.
I wish to join sets that have duplicates in one of the values together, Since 4,5,8,9 appeared in the last 3 sets, i wish to combine them together. So the end result to be :