Symmetric difference of symmetric difference

discrete mathematics

Let $X, Y, Z \neq \emptyset$. The set of elements that belong to exactly two of the sets $X,Y,Z$ was asked in the question and
$(X\cup Y\cup Z) \setminus \left( \left(X\triangle Y\right) \triangle Z\right)$ was given as the answer
I worked this out using Venn diagrams and found thisVenn diagram where unshaded portion gives the required value
Here the unshaded portion gives the required value and we can see that this portion belongs to all 3 sets, which contradicts our assumption.
I have just begun discrete maths, and I have been sitting with this for a long time. Could you please say where I am going wrong?

Best Answer

This is the illustration of $X\Delta Y$:

enter image description here

enter image description here

This is the illustration of $(X\Delta Y)\Delta Z$:

enter image description here

enter image description here

Thus, convince yourself that $X\cup Y\cup Z \setminus ((X\Delta Y)\Delta Z)$ is the set of all elements that belong to exactly two of $X,Y,Z$.