Two players (player A and player B) are playing agame against each other repeatedly until one is bankrupt. When aplayer wins a game they take $1 from the other player. All plays ofthe game are independent and identical. a) Suppose playerA starts with $2 and player B starts with $1. If player A wins agame with probability p, what is the probability that player A winsall the money? b) Suppose player A starts with $6 andplayer B starts with $6. If player A wins a game with probability0.5, what is the probability the game ends (someone loses all theirmoney) on exactly the 10th play of the game?