document.write( "Question 113885: In a cafeteria if 20% of the children had hot dogs and the others had pizza, also 8 more children had pizzas than hot dogs, how many children were having lunch? \r
\n" ); document.write( "\n" ); document.write( "X = number of students
\n" ); document.write( "D - number of students that had hot dogs
\n" ); document.write( "P = number of students that had pizza\r
\n" ); document.write( "\n" ); document.write( "D = 0.20X
\n" ); document.write( "P = 8 + (0.20X)\r
\n" ); document.write( "\n" ); document.write( "When I added the two equations above I ended up with 20 but when I tried to use 20 in the equations above it did not work.\r
\n" ); document.write( "\n" ); document.write( "Help!
\n" ); document.write( "

Algebra.Com's Answer #82871 by Edwin McCravy(20056)\"\" \"About 
You can put this solution on YOUR website!
In a cafeteria if 20% of the children had hot dogs and the others had pizza, also 8 more children had pizzas than hot dogs, how many children were having lunch?
\n" ); document.write( "X = number of students
\n" ); document.write( "D - number of students that had hot dogs
\n" ); document.write( "P = number of students that had pizza
\n" ); document.write( "D = 0.20X
\n" ); document.write( "P = 8 + (0.20X)
\n" ); document.write( "When I added the two equations above I ended up with 20 but when I tried to use 20 in the equations above it did not work.
\n" ); document.write( "Help!
\n" ); document.write( "
\r\n" );
document.write( "You just need one more equation, namely\r\n" );
document.write( "\r\n" );
document.write( "D + P = X\r\n" );
document.write( "\r\n" );
document.write( "Now substitute for D and P in that equation,\r\n" );
document.write( "using these:\r\n" );
document.write( "\r\n" );
document.write( "D = 0.20X\r\n" );
document.write( "P = 8 + (0.20X)\r\n" );
document.write( "\r\n" );
document.write( "Then you have\r\n" );
document.write( "\r\n" );
document.write( "  D   +       P       = X\r\n" );
document.write( "  |           |\r\n" );
document.write( "  v           v\r\n" );
document.write( "0.20X + [8 + (0.20X)] = X\r\n" );
document.write( "\r\n" );
document.write( "X = 13\"1%2F3\" students.\r\n" );
document.write( "\r\n" );
document.write( "That's not a whole number, but it IS the answer:\r\n" );
document.write( "\r\n" );
document.write( "In the cafeteria 20% of the 13\"1%2F3\" children, or 2\"2%2F3\" children\r\n" );
document.write( "had hot dogs and the other 10\"2%2F3\" children had pizza.\r\n" );
document.write( "\r\n" );
document.write( "This is the correct answer, since the last part\r\n" );
document.write( "\r\n" );
document.write( "\"8 more children had pizzas than had hot dogs\"\r\n" );
document.write( "\r\n" );
document.write( "is true because 10\"2%2F3\" is 8 more than 2\"2%2F3\".\r\n" );
document.write( "\r\n" );
document.write( "So the problem is botched because it is against\r\n" );
document.write( "the law to cut children into fractions, and besides\r\n" );
document.write( "when you cut them up, they can't eat pizza or hot dogs.\r\n" );
document.write( "J\r\n" );
document.write( "Now tell your teacher to change the 8 to a 12, making it\r\n" );
document.write( "this instead:\r\n" );
document.write( "\r\n" );
document.write( "In a cafeteria if 20% of the children had hot dogs and \r\n" );
document.write( "the others had pizza, also 12 more children had pizzas \r\n" );
document.write( "than hot dogs, how many children were having lunch? \r\n" );
document.write( "\r\n" );
document.write( "Then it will work out to exactly 20 children.  But the\r\n" );
document.write( "8 has to be wrong.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );