To explain my problem I'll use the following example. There is a bag with 9 blue balls and one red ball. On the first event, a ball is taken out of the bag (90% chance it is blue and 10% chance it is red). On the second event, the bag is replaced with another bag that contains 4 blue balls and 1 red ball. A ball is taken out from the second bag and placed back inside. All future events will continue to use the second bag which has an 80% chance of blue ball and 20% chance of red ball.
I want to find the event at which the chance of getting at least one red ball is greater than 50%.
If only the second bag (with 5 balls) was used, I could use the equation:
$1 - (\frac45)^n = 0.5$
And then solve for "n" and round up where "n" is the number of events, $\frac45$ is the chance of getting a blue ball, and 0.5 represents 50% chance of getting a red ball.
I can't figure out how to change my equation in order to account for the additional chance from the first event (which used the bag with 10 balls). Essentially the chance of red ball doubles after the first event.