Introduction
This brief article investigates the line of thinking that may be used in solving a particular problem.
The reasoning applied is not unlike a computer programmer's, i.e a programmer thinks in terms of variables and groups (classes).
This brief article investigates the line of thinking that may be used in solving a particular problem.
The reasoning applied is not unlike a computer programmer's, i.e a programmer thinks in terms of variables and groups (classes).
There are 60 people. Some eat 3 meals a day and some eat 4 meals a day. In one particular day, 213 meals are consumed by those 60 people. How many ate 4 meals?
The original question had more detail, but I already discarded those ...
Yes, people are divided into two groups, those ones that eat 3 meals a day, and those that eat 4 meals a day. So now we have:
The number of people of each group are unknown. This makes them variables. We allocate them the letters x and y. Note that the other 2 entities' quantities are known:
Since there are 2 unknowns, we need 2 equations:
We can solve these two equations in the usual way. That is, substitute one in the other:
x = 60 -y | (1) solved for x | |
3(60-y) + 4y = 213 | (1) in (2) | |
180 -3y + 4y = 213 | ||
y = 33 | number of 4-meal people | |
Therefore from (1) | x = 60 -33 = 27 | number of 3-meal people |