document.write( "Question 1149313: In a class of 36 students 25 study chemistry and 22 study mathematics and 25
\n" ); document.write( "study physics ,17 study physics and mathematics,18 study physics and
\n" ); document.write( "chemistry,15 study one of the three subject Find a)Those who study all three
\n" ); document.write( "subject b) only mathematics and chemistry
\n" ); document.write( "

Algebra.Com's Answer #770713 by ikleyn(52781)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "In a class of 36 students 25 study chemistry and 22 study mathematics and 25 study physics ,17 study physics and mathematics,
\n" ); document.write( "18 study physics and chemistry,15 study one of the three subject
\n" ); document.write( "Find a)Those who study all three subject b) only mathematics and chemistry
\n" ); document.write( "~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "            The solution by @greenestamps is correct;     (G)\r
\n" ); document.write( "\n" ); document.write( "            The solution by @math_helper is correct;       (MH)\r
\n" ); document.write( "\n" ); document.write( "            The solution by Edwin is  NOT  CORRECT.       (E)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "            My solution is  BELOW.  It supports  (G)  and  (MH)  and disproves  (E).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "            See also my comments after my solution.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "We are given a universal set of 36 students (the entire class).\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "We are also given info about three its subsets : \r\n" );
document.write( "\r\n" );
document.write( "    C (students enrolled to Chemistry)  of n(C) = 25 elements;  \r\n" );
document.write( "    M (Mathematics)                     of n(M) = 22 elements, and \r\n" );
document.write( "    P (Physics)                         of n(P) = 25 elements.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "We are also given the following info about their in-pair intersections:\r\n" );
document.write( "\r\n" );
document.write( "    PM (studying Physics and Math)      of n(PM) = 17 elements;\r\n" );
document.write( "    PC (studying Physics and Chemistry) of n(PC) = 18 elements;\r\n" );
document.write( "    MC (studying Math    and Chemistry) of n(MC) = unknown number of elements.\r\n" );
document.write( "\r\n" );
document.write( " \r\n" );
document.write( "We also should find the number of elements in the the triple intersection\r\n" );
document.write( "\r\n" );
document.write( "    PMC (studying Physics, Math and Chem) of n(PMC) (unknown number of elements).\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "We assume (from the context) that the union of subsets P, M and C  is the entire set of the 36 students in the class.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "In this situation the following formula works\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    n(P U M U C) = n(P) + n(M) + n(C) - n(P n M) - n(P n C) - n(M n C) + n(P n M n C).     (1)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Substitute the given data. You will get\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    36 = 25 + 22 + 25 - 17 - 18 - n(MC) + n(PMC),   or\r\n" );
document.write( "\r\n" );
document.write( "    n(MC) - n(PMC) = 25 + 22 + 25 - 17 - 18 - 36 = 1.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "This difference, n(MC) - n(PMC), is exactly the number of those who study only Math and Chemistry,\r\n" );
document.write( "\r\n" );
document.write( "so it is just answer to question b) of the problem.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Now we will work to answer question a) and to find the unknown n(PMC).\r\n" );
document.write( "\r\n" );
document.write( "For it, I should create the other equation, based on the second given condition.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The number of those who study only Math      is  22-n(PM)-n(MC)+n(PMC) = 22-n(PM)-(n(MC)-n(PMC)) =\r\n" );
document.write( "                        replace here n(PM) by 17 and replace (n(MC)-n(PMC)) by 1, as we just found, to continue the line\r\n" );
document.write( "                                                                                                 = 22-17-1 = 4.\r\n" );
document.write( "\r\n" );
document.write( "The number of those who study only Physics   is  25-n(PM)-n(PC)+n(PMC) = 25-17-18+n(PMC) = -10+n(PMC).\r\n" );
document.write( "\r\n" );
document.write( "The number of those who study only Chemistry is  25-n(PC)-n(MC)+n(PMC) = 25-n(PC)-(nMC)-n(PMC) = \r\n" );
document.write( "                        replace here n(PC) by 18 and replace (n(MC)-n(PMC)) by 1, as we just found, to continue the line                   \r\n" );
document.write( "                                                                                               = 25-18-1 = 6.\r\n" );
document.write( "\r\n" );
document.write( "Now the equation \"the sum of those who study only one of the three subjects\" is\r\n" );
document.write( "\r\n" );
document.write( "    4 - 10+n(PMC) + 6 = 15,  which implies  n(PMC) = 15 - 4 + 10 - 6 = 15.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER to (a) : 15.    ANSWER to (b) : 1.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-----------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The last step is to prove the formula (1).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "    It is totally clear to you why I add the first three addends in the formula (1).\r\n" );
document.write( "\r\n" );
document.write( "    But when I add them, I count twice every term in each in-pair intersection.\r\n" );
document.write( "\r\n" );
document.write( "    Therefore, I subtract the numbers of terms in each in-pair intersection.\r\n" );
document.write( "\r\n" );
document.write( "    Next, when I add three first addends, I count thrice each term in the triple intersection;\r\n" );
document.write( "\r\n" );
document.write( "    and when I subtract in-pair intersections, I cancel these terms thrice.\r\n" );
document.write( "\r\n" );
document.write( "    Therefore, I must add the number of terms in the triple intersection one more time to restore the balance.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Thus the formula  (1)  is proved   //   and the solution is completed  (! !)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "/\/\/\/\/\/\/\/\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "My comments.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "    Probably, the formulation is not perfect; probably, it could be better.\r\n" );
document.write( "\r\n" );
document.write( "    But as formulated, it does not leave any doubt/doubts\r\n" );
document.write( "\r\n" );
document.write( "        - that the condition covers and involves all 36 students of the class, and\r\n" );
document.write( "        - what does it mean \"15 study one of the three subject\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "     It is a STANDARD WAY to formulate such circumstances in this sort of problems,\r\n" );
document.write( "     and I saw tens of them in this forum, formulated in this way.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "     Regarding matrix solutions by Edwin and by @Math_helper, I do not think that it is the expected way for the school students\r\n" );
document.write( "     to get the solution.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "     It is why I produced my own solution and placed it here.\r\n" );
document.write( "
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Thank you for your attention (!)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "===================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Dear reader, if you want to see other similar solved problems, to wider your horizon and to feel
\n" ); document.write( "the solid ground under your legs, look into the lessons\r
\n" ); document.write( "\n" ); document.write( "    - Counting elements in sub-sets of a given finite set\r
\n" ); document.write( "\n" ); document.write( "    - Advanced problems on counting elements in sub-sets of a given finite set\r
\n" ); document.write( "\n" ); document.write( "    - Challenging problems on counting elements in subsets 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( "Look also into the links\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Probability-and-statistics/Probability-and-statistics.faq.question.1132870.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Probability-and-statistics/Probability-and-statistics.faq.question.1129554.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Probability-and-statistics/Probability-and-statistics.faq.question.1129554.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/Rate-of-work-word-problems/Rate-of-work-word-problems.faq.question.1126097.html\r
\n" ); document.write( "\n" ); document.write( "https://www.algebra.com/algebra/homework/word/evaluation/Evaluation_Word_Problems.faq.question.1126099.html\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "to similar solved problems in the archive of this forum.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "When you learn from these sources, you will know the subject as well, as I know it . . . \r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );