If the outcome is one of the following: H,TTH,TTTTH,…, then X wins As subsequent tosses are independent, so the probability that X wins is p+4p+16p+…=34p. Similarly Y wins if the outcome is one of the following: TH,TTTH,TTTTTH,… Therefore, the probability that Y wins is 21−p+81−p+321−p=32(1−p) Since, the probability of winning the game by both the players is equal then, we have 34p=32(1−p)⇒p=31