Im having trouble finding any good resources or examples for finding the conditional distribution of two variables. I've tried using double expectations but cant get it to work out. Thanks
I found the pmf of X not conditioned on N below
$ P(x=x) = \frac{e^{-\lambda p}(\lambda p)^x}{x!} $
Then used $ E(e^{tx}) $ to find the mgf
$ M_x(t) = e^{\lambda p(e^t-1) } $