Question
Question: If X and Y are two sets such that \(X \cup Y\) has \(60\) elements, \(X\) has \(33\) elements and \(...
If X and Y are two sets such that X∪Y has 60 elements, X has 33 elements and Y has 37 elements, how many elements does X−Y and Y−X have?
Solution
We will use the formula: n(A−B)=n(A∪B)−n(B) to calculate the number of elements in X−Y and X−Y. Here, we will suppose X≡A and Y≡B and the number of elements of X and Y are already given in the question. After putting their values, we will get the number of elements in X−Y and Y−X.
Complete step-by-step answer:
We are given that X and Y are two sets such that X∪Y has 60 elements, X has 33 elements and Y has 37 elements.
We are required to calculate the number of elements in X−Y and Y−X.
We have the formula of sets given by: n(A−B)=n(A∪B)−n(B)
Here, let A=X and B=Y.
Now, the number of elements in the set X are given as: n(X)=33.
The number of elements in the set Ycan be represented as: n(Y)=37.
The number of elements in the union of both the sets X and Y can be given by: n(X∪Y)=60.
So, for calculating the number of elements in the set X−Y, we can write the formula as:
⇒n(X−Y)=n(X∪Y)−n(Y)
On substituting the values, we get
Therefore, there are a total of 23 elements in the set X−Y.
Now, for the calculation of the number of elements in Y−X, we have the formula as: n(Y−X)=n(X∪Y)−n(X)
On substituting the values, we get
⇒n(Y−X)=60−33 ⇒n(Y−X)=27
Hence, there are a total 27 elements in the set Y−X.
Note: We can also solve this question using the other formula: n(A−B)=n(A)−n(A∩B) and n(A∩B) can be calculated using the formula: n(A∪B)=n(A)+n(B)−n(A∩B). This is a time consuming method, comparatively.