document.write( "Question 608387: 500 people shopped at a candy store and spent a total of $500.
\n" ); document.write( "The women each spent $1, the men each spent $5, and the children spent 1 cent.
\n" ); document.write( "How many men shopped at the store? How many women? How many children?
\n" ); document.write( "

Algebra.Com's Answer #383209 by flame8855(424)\"\" \"About 
You can put this solution on YOUR website!
x is women
\n" ); document.write( "y is men
\n" ); document.write( "z is children
\n" ); document.write( "x+y+z = 500
\n" ); document.write( "x+5y+0.01z=500
\n" ); document.write( "since x+5y+0.01z=500
\n" ); document.write( "so the z has to be a multiple of 100 since there are no decimal numbers
\n" ); document.write( " 100 children would leave 400 people to spend $499. 200 children would leave 300 people to spend $498.
\n" ); document.write( "300 children would leave 200 people to spend $497. 400 children would leave 100 people to spend $496
\n" ); document.write( "it is about trail and error
\n" ); document.write( "the values of x y and z must be whole numbers no decimals
\n" ); document.write( "the right answer is 99 men 1 women and 400 children.
\n" ); document.write( "
\n" );