Each time you play a game, you win with probability p. (The games are independent.) You plan to play 5 games, but if you win the fifth game, then you will keep on playing until you lose. (a) Find the expected number of games that you play. (b) Find the expected number of games that you lose.
I'm not sure how to account for games that you play past the 5 games. I know that if you have a p% chance of winning the game you would only have to check on the 5th game and onward whether you win or not. But how would I go about doing so?