document.write( "Question 254151: In a group of 40 students, 20 have cats, 15 have dogs, and 4 have both cats and dogs.\r
\n" ); document.write( "\n" ); document.write( "(a) How many students have neither cats nor dogs?
\n" ); document.write( "(b) How many students have cats but not dogs?
\n" ); document.write( "

Algebra.Com's Answer #186473 by solver91311(24713)\"\" \"About 
You can put this solution on YOUR website!
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If 4 have both cats and dogs and 20 have cats, then 16 must have a cat but not a dog. Similarly, if 4 have both and 15 have dogs, then 11 must have dogs but no cats.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So 16 plus 4 plus 11 equals 31 of the 40 students have one or the other or both leaving 9 that have neither.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "John
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" );