The original number of marbles in the bag is 30.
The given parameters are:
[tex]Red = x + 1[/tex]
[tex]Total = x^2 + 5[/tex]
The probability of red is:
[tex]P(Red) = \frac{Red}{Total}[/tex]
[tex]P(Red) = \frac{x+1}{x^2 + 5}[/tex]
When 20 marbles were removed, the marbles left are:
[tex]Marbles =Total - 20[/tex]
This gives:
[tex]Marbles =x^2 + 5 - 20[/tex]
[tex]Marbles =x^2 -15[/tex]
The probability of selecting a scratched marble at this point is:
[tex]P(Scratch) = \frac{Scratch}{Marbles}[/tex]
[tex]P(Scratch) = \frac{x -3}{x^2 - 15}[/tex]
This probability equals the probability of red.
i.e.
[tex]P(Red) = P(Scratch)[/tex]
So, we have:
[tex]\frac{x +1}{x^2 + 5} = \frac{x -3}{x^2 - 15}[/tex]
Cross multiply
[tex](x + 1)(x^2 - 15) = (x - 3)(x^2 + 5)[/tex]
Expand
[tex]x^3 - 15x + x^2 - 15 = x^3 + 5x - 3x^2 - 15[/tex]
Subtract [tex]x^3[/tex] from both sides
[tex]- 15x + x^2 - 15 = 5x - 3x^2 - 15[/tex]
Add 15 to both sides
[tex]- 15x + x^2 = 5x - 3x^2[/tex]
Collect like terms
[tex]3x^2 + x^2 - 15x - 5x = 0[/tex]
[tex]4x^2 - 20x = 0[/tex]
Divide through by 4
[tex]x^2 - 5x = 0[/tex]
Expand
[tex]x(x - 5) = 0[/tex]
Split
[tex]x = 0[/tex] or [tex]x - 5 = 0[/tex]
[tex]x = 0[/tex] or [tex]x = 5[/tex]
x can't be 0.
So: [tex]x = 5[/tex]
The number of marbles initially is:
[tex]Total = x^2 + 5[/tex]
[tex]Total = 5^2 + 5[/tex]
[tex]Total = 30[/tex]
Hence, the original number of marbles in the bag is 30.
Read more about probabilities at:
https://brainly.com/question/11234923