The number of members in A∪B should be the total number of members in A plus the total number of members in B minus the number of members which are in both sets. In example 3, X contains 5 members, Y contains 5 members, and there are 3 members which are in both X and Y. Thus, X∪Y has 5 + 5 - 3 = 7 members.