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)![]() ![]() 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\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( " \n" ); document.write( " |