Find the expected value for the number of flips you'll need to make in order to see the pattern TXT, where T is tails, and X is either heads or tails.

I tried conditioning on the coin flips (e.g. TXT, TXH, H) but I got an incorrect answer of 8. Any suggestions?