SOLUTION: 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? X = number of

Algebra.Com
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?
X = number of students
D - number of students that had hot dogs
P = number of students that had pizza
D = 0.20X
P = 8 + (0.20X)
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.
Help!

Answer by Edwin McCravy(20056)   (Show Source): 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?
X = number of students
D - number of students that had hot dogs
P = number of students that had pizza
D = 0.20X
P = 8 + (0.20X)
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.
Help!

You just need one more equation, namely

D + P = X

Now substitute for D and P in that equation,
using these:

D = 0.20X
P = 8 + (0.20X)

Then you have

  D   +       P       = X
  |           |
  v           v
0.20X + [8 + (0.20X)] = X

X = 13 students.

That's not a whole number, but it IS the answer:

In the cafeteria 20% of the 13 children, or 2 children
had hot dogs and the other 10 children had pizza.

This is the correct answer, since the last part

"8 more children had pizzas than had hot dogs"

is true because 10 is 8 more than 2.

So the problem is botched because it is against
the law to cut children into fractions, and besides
when you cut them up, they can't eat pizza or hot dogs.
J
Now tell your teacher to change the 8 to a 12, making it
this instead:

In a cafeteria if 20% of the children had hot dogs and 
the others had pizza, also 12 more children had pizzas 
than hot dogs, how many children were having lunch? 

Then it will work out to exactly 20 children.  But the
8 has to be wrong.

Edwin



RELATED QUESTIONS

Every boy had 5 hot dogs and 7 sodas. Every girl had 3 hot dogs and 4 sodas. Together,... (answered by Theo)
At the beginning of a minor league baseball game, the hot dog vendor had 200 hot dogs... (answered by stanbon)
Shawn was training for a hot dog contest. He trained for 6 days and each day he ate 4... (answered by nerdybill)
Hot dogs are sold in packages of 12 and hot dog buns are sold in packages of 8. If they... (answered by stanbon)
51% of the families in the us had not children under the age of 18; 20% had one child;... (answered by solver91311)
In a group of 37 children, 14 had a dog, 20 had a cat, and 12 had both a dog and a cat.... (answered by vleith)
A census by the county dog control officer found that 18% of homes kept one dog as a pet, (answered by stanbon)
Peter has a hot dog stand in the mall. He pays $2000 per month to rent the space. Each... (answered by josmiceli)
Mary is going to have a party for 95 guests. Hot dogs are sold in packages of eight and... (answered by richwmiller)