.
A group of office workers had some prize money to distribute among themselves.
When all but one took $9 each, the last person only received $5.
When they all took $8 each, there was $12 left over. How much had they won?
~~~~~~~~~~~~~~~~~~~
Let n be the number of workers.
We can express the total money in two different ways.
One way is the total money = 9*(n-1) + 5
Another way is the total money = 8*n + 12.
Since the total money is the same,
9*(n-1) + 5 = 8n + 12
Simplify and find n
9n - 9 + 5 = 8n + 12
9n - 4 = 8n + 12
9n - 8n = 12 + 4
n = 16.
So, there are 16 workers, and the total prize money is 8n+12 = 8*16 + 12 = 140 dollars. ANSWER
Solved.