document.write( "Question 167204: A movie theater charges $8.00 for adults and $5.00 for children. If there were 40 people alltogether and the theater collected $272.00 at the end of the day, how many of them were adults? \n" ); document.write( "
Algebra.Com's Answer #123138 by Mathtut(3670)\"\" \"About 
You can put this solution on YOUR website!
lets call the number of adults a and the number of children c.\r
\n" ); document.write( "\n" ); document.write( "so the total adults plus the total children equals 40 or a+c=40 or c=40-a\r
\n" ); document.write( "\n" ); document.write( "also we know that 8a+5c=272\r
\n" ); document.write( "\n" ); document.write( "substituting c's value in the 1st equation into the 2nd equation we get\r
\n" ); document.write( "\n" ); document.write( "8a+5(40-a)=272---->lets distribute that left side---->8a+200-5a=272\r
\n" ); document.write( "\n" ); document.write( "now lets combine like terms on either side of the equals sign.\r
\n" ); document.write( "\n" ); document.write( "\"3a=72\" \"a=24\"\r
\n" ); document.write( "\n" ); document.write( "so we have \"highlight%2824-adults%29\"
\n" ); document.write( "and c=40-a(24)=\"highlight%2816-children%29\"
\n" ); document.write( "
\n" );