enumeration method
When a = {1, 2,3}, B= empty set, {1}, {2}, {3}, {1, 2}, {1, 3}, {2,3}.
When A={ 1, 2}, B = {3}, {1, 3}, {2,3}, {1, 2,3} 4.
When A={ 1, 3}, B = {2}, {1, 2}, {2,3}, {1, 2,3} 4.
When a = {2,3}, B = {1}, {1, 2}, {1, 3}, {1, 2,3} 4.
When A={ 1}, b = {2,3}, {1, 2,3} 2.
When A={2}, B={ 1, 3}, {1, 2,3} 2.
When A={3}, B={ 1, 2}, {1, 2,3} 2.
When A= empty set, B={ 1, 2,3}1.
I wish you a happy study and discuss with me if you have any questions.