We have covered conditional probabilities and law of total expectation so far but I have a very poor understanding of those concepts. I have absolutely no clue on how to proceed with this question:
A fair die is thrown and a coin is tossed the number of times as the score shown on the die. If any heads are shown in the tosses of the coin, we stop, otherwise, we continue the experiment of throwing the die and coin toss until at least one head is shown. Find the expected number of coin tosses before we stop.
Let $q(k)$ be the probability that a head fails to appears when the die shows $k.\;\,$Then $$ q(k)=\left({\small{\frac{1}{2}}}\right)^k $$ Let $p(k)$ be the probability that a head appears when the die shows $k.\;\,$Then $$ p(k)=1 -q(k) = 1 - \left({\small{\frac{1}{2}}}\right)^k $$ Let $x$ be the expected number of tosses until the game ends.
Either a head appears in the first round, or if not, we are effectively starting a new game, with a prior toss count equal to the value of the roll in the first round.
It follows that $$ x = \sum_{k=1}^6 \left({\small{\frac{1}{6}}}\right) \Bigl(p(k)(k) + q(k)(k+x)\Bigr) $$ which simplifies to $$ x = \frac{7}{2}+\frac{2}{128}x $$ hence $$x = \frac{448}{107}\approx 4.186915888$$