let x = {-2, -1, 0, 1, 2} and y = {-1, 0, 2}. what is the complement of y in x? {0, 2} {1} {-2, 1} {-1}

let x = {-2, -1, 0, 1, 2} and y = {-1, 0, 2}. what is the complement of y in x? {0, 2} {1} {-2, 1} {-1}
Answer
Answer:
C. ${-2,1}$
Explanation:
Step1: Define complement
The complement of $Y$ in $X$, denoted as $X - Y$, is the set of elements that are in $X$ but not in $Y$.
Step2: Check each element
For $-2\in X$ and $-2\notin Y$. For $-1\in X$ and $-1\in Y$. For $0\in X$ and $0\in Y$. For $1\in X$ and $1\notin Y$. For $2\in X$ and $2\in Y$.
Step3: Form the complement set
The elements that are in $X$ but not in $Y$ are $-2$ and $1$. So $X - Y={-2,1}$.