but these have a different algorithm.
i have it on the tip of my tongue.
the answer is
we have two groups
and in those two groups we have a common numbers
so when we what to find the total number of values.
we sum the amount of values in the first group with the amount of values in the second group
and we delete the common numbers.(because we counted them twice)

this is what they want in the last part
but i cant figure out how to do that in that case in practice
??