I've been given the following problem and I'd like to get a better understanding of how to solve it.
A fair die is rolled successively.
Let $X$ be the number of rolls needed to get a 6
Let $Y$ be the number of rolls needed to get a 5.
Compute $E[X|Y=1]$ and $E[X|Y=5]$
Now, For the first one, I know I could do the following
$$\sum_{x=2}^\infty x(5/6)^{x-2}(1/6)$$
and arrive at the correct answer, $E[X|Y=1]=7$, because I already know I had one failure of $X$. However, this seems like a shortcut to me and I really want to understand how to do this by definition. So what I'm trying to evaluate is the following:
$$\sum_{x=1}^\infty x P(X=x|Y=1) = \sum_{x=1}^\infty x \frac{P(X=x,Y=1)}{P(Y=1)}$$
Now since $X$ and $Y$ are both geometric random variables, I know that $$P(Y=y) = (5/6)^{y-1}(1/6)$$ $$P(Y=1) = 1/6$$
However, what I'm not sure how to do is calculate $P(X=x,Y=1)$.
Note the following: