If A = { 1, 2, 3, 4, 5, 6}, B = { 2, 4, 6, 8 }. Find (A – B) ∪ (B – A).

If A = { 1, 2, 3, 4, 5, 6}, B = { 2, 4, 6, 8 }. Find (A – B) ∪ (B – A).

  1. {1, 2, 3, 4, 5, 6, 8}
  2. {8}
  3. {1, 3, 5}
  4. {1, 3, 5, 8} ✓

Explanation

Step 1: Find A – B (elements in A but not in B)
A = {1, 2, 3, 4, 5, 6}
B = {2, 4, 6, 8}
Remove 2, 4, 6 from A
A – B = {1, 3, 5}

Step 2: Find B – A (elements in B but not in A)
From B, only 8 is not in A
B – A = {8}

Step 3: Find the union (A – B) ∪ (B – A)
Union means combine both sets
{1, 3, 5} ∪ {8} = {1, 3, 5, 8}

Note: This is also called the symmetric difference of A and B.