| Well...think of it this way. Let's say there are 15 students taking Math, and 12 students taking Biology, but 5 of the students are taking both Math and Biology. To figure out the total number of students, you would add the students taking math, those tatking Bio, and then SUBTRACT the ones taking both. This is to prevent counting students twice. SO it would be 15 + 12 - 5 = 22.
Now, for this particular problem, we not only want to prevent the members in both sets from being counted twice, but also stop them from being counted AT ALL. So instead of subtracting just k, you have to subtract 2k.
Let's call the numbers in set X that are not common with those in set Y a. The numbers in set Y that are exclusive of set X are b.
The common terms from sets X and Y are called k.
Set X:
a
k
Set Y:
b
k
Now it is easy to see why you must subtract 2k when forming set Z.
Z = a +b = X + Y -2k |