The sets A, B and C are given as lists of elements:
The elements that belong to both A and B are said to belong to the intersection between both sets. It can be represented using a Venn Diagram:
The set of elements that belong to both A and B, is:
Similarly, the set of elements that belog to both A and C, is:
To find the set of elements that are common to A, B, and C, check for those elements that belong to all the sets:
Therefore:
The set of elements that belong to both A and B, is:
The set of elements that belong to both A and C, is:
The set of elements that are common to A, B and C, is: