Đáp án:
$a)$Các tập $Y$ thoả mãn: $\{a\}; \{d\}; \{g\};\{a;d\}; \{a;g\}; \{a;d;g\}$
$b) \left[\begin{array}{l} A=\{a; b; c\}; B =\{ d; e; g\} \\ A=\{a; b; c;g\}; B =\{ d; e\} \\ A=\{a; b; c;g\}; B =\{ d; e;g\}\end{array} \right.$
Giải thích các bước giải:
$a)X \setminus Y=\{b;c;e\}\\ \Rightarrow b,c,e \notin Y\\ Y \subset X$
$\Rightarrow $Các tập $Y$ thoả mãn: $\{a\}; \{d\}; \{g\};\{a;d\}; \{a;g\}; \{a;d;g\}$
$b)B \setminus A=\{d;e\}\\ \Rightarrow \left\{\begin{array}{l} d, e \in B\\ d, e \notin A\end{array} \right.\\ A \setminus B=\{a;b;c\}\\ \Rightarrow \left\{\begin{array}{l} a,b,c \in A\\ a;b;c \notin B\end{array} \right.\\ \text{Và }A \cup B=\{a; b; c; d; e; g\}\\ \Rightarrow \left[\begin{array}{l} A=\{a; b; c\}; B =\{ d; e; g\} \\ A=\{a; b; c;g\}; B =\{ d; e\} \\ A=\{a; b; c;g\}; B =\{ d; e;g\}\end{array} \right.$