document.write( "Question 1097130: there are (t) orange balls and 2 yellow balls in a bag. Craig randomly selects one ball from the bag, records his choice and returns the ball to the bag. He then randomly selects a second ball from the bag, records his choice and returns the ball to the bag. It known that the probability that Craig will select two balls of the same colour from the bag is 52%. Calculate how many balls are in the bag \n" ); document.write( "
Algebra.Com's Answer #711577 by htmentor(1343)\"\" \"About 
You can put this solution on YOUR website!
The total number of balls in the bag = t + 2
\n" ); document.write( "Then probability of selecting two orange balls = P(O) = (t/(t+2))*(t/(t+2)) = (t/(t+2))^2
\n" ); document.write( "And the probability of selecting two yellow balls = P(Y) = (2/(t+2))^2
\n" ); document.write( "So the total probability of selecting two balls of the same color =
\n" ); document.write( "P(O) + P(Y) = t^2/(t+2)^2 + (2/(t+2))^2 = 52/100
\n" ); document.write( "Solve for t:
\n" ); document.write( "t^2/(t+2)^2 + 4/(t+2)^2 = (t^2+4)/(t+2)^2 = 13/25
\n" ); document.write( "This simplifies to
\n" ); document.write( "3t^2 - 13t + 12 = 0
\n" ); document.write( "and factors as (3t-4)(t-3) = 0
\n" ); document.write( "The solutions are t = 4/3, t = 3
\n" ); document.write( "There must be an integer number of balls, so t = 3
\n" ); document.write( "Thus there are 3 + 2 = 5 balls in the bag
\n" ); document.write( "Check:
\n" ); document.write( "P(O) + P(Y) = 3/5*3/5 + 2/5*2/5 = 9/25 + 4/25 = 13/25
\n" ); document.write( "
\n" );