document.write( "Question 360608: An urn contains 14 balls; 6 of them are white, and the others are black. Another urn contains 9 balls; 3 are white, and 6 are black. A ball is drawn at random from the first urn and is placed in the second urn. Then, a ball is drawn at random from the second urn. If this ball is white, find the probability that the ball drawn from the first urn was black. \r
\n" ); document.write( "\n" ); document.write( "**Well, I know that I have to use the Law of Total Probability and the Bayes'Rule but I don't understand how. \r
\n" ); document.write( "\n" ); document.write( "So much thanks
\n" ); document.write( "

Algebra.Com's Answer #257311 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
Let b1 = event that 1st ball drawn is black,
\n" ); document.write( "w1 = event that 1st ball drawn is white,
\n" ); document.write( "b2 = event that 2nd ball drawn is black,
\n" ); document.write( "w2 = event that 2nd ball drawn is white.
\n" ); document.write( "Then P(b1|w2) = P(b1 and w2)/P(w2)= P(b1 and w2)/[P(b1 and w2)+P(w1 and w2)]
\n" ); document.write( "=P(w2|b1)*P(b1)/[P(w2|b1)*P(b1) + P(w2|w1)*P(w1)]
\n" ); document.write( "=\"%283%2F10%29%2A%284%2F7%29%2F%28%283%2F10%29%2A%284%2F7%29%2B%282%2F5%29%2A%283%2F7%29%29\"
\n" ); document.write( "=\"%2812%2F70%29%2F%2812%2F70%2B6%2F35%29+=+1%2F2\"
\n" ); document.write( "
\n" );