A fair 6-sided die is rolled until a 6 shows up. Let $S$ denote the sum of all rolls and let $P$ denote the parity of $S$. Find $\mathbb{E}[S|P=0]$.
There are several directions one can approach this. I would prefer a clean solution if possible (one idea is to write out a summation for the expectation and simplify it algebraically, but this seems messy). Here are some of my thoughts:
From total expectation, we can write $$\mathbb{E}[S]=\mathbb{E}[S|P=0]\mathbb{P}(P=0)+\mathbb{E}[S|P=1]\mathbb{P}(P=1)$$ We can compute $\mathbb{E}[S]$ via $$\mathbb{E}[S]=6+\mathbb{E}[\sum_{i=1}^TX_i]=6+\mathbb{E}[T]\mathbb{E}[X_1]=6+5\cdot 3=21$$ where $T$ denotes the number of rolls before the 6 and $X_1,X_2,\dots,X_T$ denote the value of the rolls. We can also easily compute $\mathbb{P}(P=0)=\frac{4}{7},\mathbb{P}(P=1)=\frac{3}{7}$ by solving a system of linear equations. So if we can compute the ratio of $\mathbb{E}[S|P=0]$ and $\mathbb{E}[S|P=1]$ somehow, we would be done.
We can try to compute $$\mathbb{E}[S|P=0]=6+\mathbb{E}[\sum_{i=1}^TX_i|P=0]$$ directly. Would we be able to simplify this as $$\mathbb{E}[\sum_{i=1}^TX_i|P=0]=\mathbb{E}[T|P=0]\mathbb{E}[X_i|P=0]$$ since I believe $X_i$ and $T$ are still independent conditioned in $P$? But even if this is correct, I don't see how to get $\mathbb{E}[T|P=0]$ without a messy summation.
There may be a tricky solution which uses iterated expectation, adding an extra conditional on $T$. I haven't thought about this too much though.
Any ideas would be appreciated!