I need assistance figuring out how to address a specific question.
I don't need the complete answer, just some guidance would be appreciated.

Let $X$ be a geometric random variable with $P$ as the parameter.
let $Y$, given $X = i$, a binomial random variable with parameters (i, p).

find $P\{X = Y\}$.

I literally have no idea how to attack this.