Suppose that two teams play in a series which can at most can have 5 games played. For example, if team A wins 3 games, the series is over. Suppose that each game is played, independently, won by team A with probability p. Find the expected number of games that are played.