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 ->  Percentage-and-ratio-word-problems -> 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       Log On


   



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) About Me  (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 = 131%2F3 students.

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

In the cafeteria 20% of the 131%2F3 children, or 22%2F3 children
had hot dogs and the other 102%2F3 children had pizza.

This is the correct answer, since the last part

"8 more children had pizzas than had hot dogs"

is true because 102%2F3 is 8 more than 22%2F3.

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