Geometric distribution with parameter $p$ is the number of tosses of biased coint to get first head. The distributions is given by $P(X=k) = (1-p)^{k-1}p$. The expected number of tosses to get first head is $\frac{1}{p}$. Now, the question is to find the expected number of tosses to get the first HH pattern.