Number of one Poisson type before another
= Number of one Poisson type before another
For independent Poisson processes of rates $\lambda_1$ and $\lambda_2$, the number $K$ of type-two arrivals before the first type-one arrival satisfies
$$
\mathbb P(K=k)
=\left(\frac{\lambda_2}{\lambda_1+\lambda_2}\right)^k
\frac{\lambda_1}{\lambda_1+\lambda_2}.
$$
This follows by marking the superposed process by its arrival type.