document.write( "Question 394011: A bag has 3 red and k white marbles, where k is an (unknown) positive integer. Two of the marbles are chosen at random from the bag. If the probability that the two marbles are the same color is 1/2, find k. \n" ); document.write( "
Algebra.Com's Answer #279570 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
We assume that \"k%3E=+2\", or else the event of getting 2 white marbles is excluded.\r
\n" ); document.write( "\n" ); document.write( "The probability of getting 2 red marbles = \"3C2%2F%28k%2B3%29C2\"
\n" ); document.write( "The probability of getting 2 white marbles = \"kC2%2F%28k%2B3%29C2\"
\n" ); document.write( "Hence
\n" ); document.write( "\"3C2%2F%28k%2B3%29C2+%2B+kC2%2F%28k%2B3%29C2+=+1%2F2\"
\n" ); document.write( "<==> \"6%2F%28%28k%2B3%29%28k%2B2%29%29+%2B+%28k%28k-1%29%29%2F%28%28k%2B3%29%28k%2B2%29%29+=+1%2F2\" after simplifying.
\n" ); document.write( "<==> \"%28k%5E2+-+k+%2B+6%29%2F%28k%5E2+%2B+5k+%2B+6%29+=+1%2F2\"
\n" ); document.write( "<==> \"k%5E2+-+7k+%2B+6+=+0\", after cross-multiplying and simplifying.
\n" ); document.write( "<==> (k-1)(k - 6) = 0.
\n" ); document.write( "==> k = 1, 6.
\n" ); document.write( "Therefore k = 6, the number of white marbles.
\n" ); document.write( "
\n" );