Two coins with heads probabilities $\frac{1}{3}$ and $\frac{1}{4}$ are alternately tossed, starting with the $\frac{1}{3}$ coin, until one of them turns up heads. Let $X$ denote the total number of tosses, including the last. Find:
$$E(X)$$
I have seen a recent post that describes the answer as:
$$\mathbb{E}(X) = \displaystyle 1 + \frac{2}{3} (1 + \frac{3}{4} \mathbb{E}(X))$$
This still confuses me because how can you solve for $E(X)$ with $E(X)$ in the equation?