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 #186469 by dabanfield(803)\"\" \"About 
You can put this solution on YOUR website!
In a group of 40 students, 20 have cats, 15 have dogs, and 4 have both cats and dogs.
\n" ); document.write( "(a) How many students have neither cats nor dogs?
\n" ); document.write( "(b) How many students have cats but not dogs?\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Of the 20 people who have cats, 4 also have dogs so 20-4 = 16 have cats only. Similarly 15-4 = 11 have dogs only. So we have:\r
\n" ); document.write( "\n" ); document.write( "16 cats only
\n" ); document.write( "11 dogs only
\n" ); document.write( "4 both dogs and cats.\r
\n" ); document.write( "\n" ); document.write( "The remaining students, 40-(16+11+4) = 9, have neither dogs nor cats.
\n" ); document.write( "
\n" );