It is an assignment question, thus I am simply looking for a hint to unblock myself.
Let $S$ be a collection of all ordered pairs of subsets of $\{1, ..., n\}$, not necessarily disjoint. That is, $$ S = \{(A,B) : A \subseteq \{1, ..., n\}, b \subseteq \{1, ..., n\} $$ Show by computing the size of $S$ in the different ways that $$ 4^n = \sum_{k=0}^{n}{3^k{{n}\choose{k}}} $$
So far the left side is obvious that it is simply picking a $A$ then picking a $B$ in $\{1,...,n\}$. $$ |S| = 2^n \times 2^n = 4^n $$ The right side however is what has me stuck. Looking at the $3^k$, I can tell that it's the number of ways to pick $(A,B)$ disjoint subsets of $\{1,...,k\}$, $n\choose{k}$ is the number of ways to pick a third set. I've wrote ways to combine the third set into $(A,B)$ but I can't seem to find something intuitive that works for all $A, B$
Big hint: Let $S_k = \{(A,B) \in S : |A \cup B| = k\}$. Show that $|S_k| = 3^k \binom{n}{k}$.