Lets suppose two sets be A and B.
Elements can be either in A or B or not in both sets.
Therefore, Total possible ordered pairs = $(3)^8$
But cases like,
- A={ø} and B = elements
- A= elements and B= {ø}
are not allowed, remove them.
So, $3^8$ – $2 *2^8$
But we have subtracted A={ø} and B={ø} two times, so add $1$.
Current total = $3^8$ – $2 * 2 ^ 8$ + $1$ = $ 6050 $
But here we have to consider unordered pairs, so resultant total = $6050/2$ =$3025$.