Here is the entire question:
A random variable Y follows an exponential distribution with parameter $\theta$. Given $Y = y$, another random variable X follows the Poisson distribution with $\lambda = y$. Show that $P(X = k) = \frac{\theta}{(1 + \theta)^{(k+1)}}$.
I know that $P(X = k) = \frac{e^{-y} y^k}{k!} $ but I don't know how to use the Y random variable to solve the equation.