document.write( "Question 1191509: 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? \n" ); document.write( "
Algebra.Com's Answer #823300 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "P = total prize money in dollars
\n" ); document.write( "n = number of people
\n" ); document.write( "n-1 = all but one person\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "All but one took $9 each, so we have (n-1)*9 = 9n-9 dollars taken.
\n" ); document.write( "The amount of money left over is P-(9n-9) = P-9n+9 which is set equal to the stated $5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P-9n+9 = 5
\n" ); document.write( "P = 5+9n-9
\n" ); document.write( "P = 9n-4\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In the second scenario, all n workers took $8 each.
\n" ); document.write( "They took a total of 8n dollars.
\n" ); document.write( "There is $12 left over, so,
\n" ); document.write( "P - 8n = 12\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now apply substitution
\n" ); document.write( "P - 8n = 12
\n" ); document.write( "9n-4 - 8n = 12
\n" ); document.write( "n-4 = 12
\n" ); document.write( "n = 12+4
\n" ); document.write( "n = 16
\n" ); document.write( "There are 16 office workers total.
\n" ); document.write( "If all but one (aka 15 people) take $9 each, then we have 15*9 = 135 dollars taken. Add on the leftover $5 to get to 135+5 = $140\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Or you can compute P like this
\n" ); document.write( "P = 9n-4
\n" ); document.write( "P = 9*16-4
\n" ); document.write( "P = 144 - 4
\n" ); document.write( "P = 140\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Yet another way is to do
\n" ); document.write( "P - 8n = 12
\n" ); document.write( "P = 8n+12
\n" ); document.write( "P = 8*16+12
\n" ); document.write( "P = 128+12
\n" ); document.write( "P = 140
\n" ); document.write( "Like with many topics in math, there are multiple routes to take.
\n" ); document.write( "Feel free to use your favorite.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answer: 140 dollars
\n" ); document.write( "

\n" ); document.write( "
\n" ); document.write( "
\n" );