The probability mass function (PMF) for X, the number of games played, is

How to determine the expression for the probability mass function
From the question, we have the following parameters that can be used in our computation:
- p is the probability that A wins a game
- 1 - p is the probability that B wins a game
This means that the probability mass function (PMF) for X is

Where
- P(x) represents the probability mass function for the random variable x, which indicates the number of games played.
- pˣ ⁻ ¹ represents the probability of A winning in a single game, given that there are x - 1 games before the x-th game
- (1 - p) represents the probability of B winning in a single game
Lastly, we consider cases for x ranging from 10 to 19, as the game must end by the 19th round.
And if x is not in the range 10 to 19, the probability is zero.