A fair coin is tossed until one of the patterns show up: TTH or THT. Let A be the event that TTH shows up before THT.
What is P(A)?
Here is my solution but I am not sure if it is correct or there is a better solution.
Let $p=P(A)$. Define
$A_1=$ the event that the first toss is H
$A_2=$ the event that the first two tosses are TT
$A_3=$ the event that the first three tosses are THT
$A_4=$ the event that the first three tosses are THH
Then this is a partition for the sample space.
$p=P(A|A_1)P(A_1)+P(A|A_2)P(A_2)+P(A|A_3)P(A_3)+P(A|A_4)P(A_4)$.
Then
$p=p\frac{1}{2}+1\frac{1}{4}+0\frac{1}{8}+p\frac{1}{8}$ which implies that $p=\frac{2}{3}.$