Anna writes down a random sequence created by the following process. She repeatedly rolls a fair 6-sided die. If the number she rolls is larger than all of the numbers she has previously rolled (if any), then she writes the new number down and then continues rolling. Otherwise, she does not write the new number down and the process ends.
Let X be the length of Anna’s sequence, and Y be the last number in her sequence.
For example, if Anna rolled 1 then 4 then 5 then 4, her sequence would be 1,4,5 and the random variables X, Y would take values X = 3 and Y = 5.
Question
What is $Pr(X=2|Y=3)$
My workings so far
$Pr(X=2|Y=3)=$ $\frac{Pr(X=2 \land Y=3)}{Pr(Y=3)}$
I know that $Pr(Y=3)= \frac{1}{6}(1+\frac{2}{6}+\frac{\binom{2}{2}}{6^2})$
Then, $Pr(Y=3)=\frac{49}{216}$
The problem I'm having trouble figuring out is calculating $Pr(X=2\land Y=3)$
Can anyone help me with this, I'm very confused. Thank you so much in advance.