document.write( "Question 1134540: 400 students are surveyed about the pets they have. 250 have a dog, 190 have a cat
\n" ); document.write( "and 160 have a dog and a cat. What is the probability that a student has a dog?\r
\n" ); document.write( "\n" ); document.write( "And what is the probability the student has a dog OR a cat?
\n" ); document.write( "

Algebra.Com's Answer #751957 by ikleyn(52780)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "
\r\n" );
document.write( "There is a universal set U of 400 students.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "There is a subset D of 250 students that have a dog.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "There is a subset C of 190 students that have a cat.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "And there is the intersection (D n C) of these subsets, which contains 160 students that have a dog AND a cat.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Then the number of students who have a dog OR a cat is  n(D U C) = n(D) + n(C) - n(D n C) = 250 + 190 - 160 = 280.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The answer to the first question is  P(D) = \"n%28D%29%2F400\" = \"250%2F400\" = \"5%2F8\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The answer to the second question is  P(D U C) = \"n%28d_U_C%29%2F400\" = \"280%2F400\" = \"7%2F10\".\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved, answered and completed.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you want to learn more about the formula to calculate the union of subsets, look into my lesson\r
\n" ); document.write( "\n" ); document.write( "    - Counting elements in sub-sets of a given finite set\r
\n" ); document.write( "\n" ); document.write( "in this site.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );