document.write( "Question 940205: Bob is in trouble. He was working the Pizza Shack Booth at the Marion Popcorn Festival, and was supposed to keep track of the number of each type of pizza sold during his shift. He knew there were 995 empty boxes at the beginning of his shift, and that there were 395 boxes left at the end of his shift. He also knows he sold $4,560 during his shift. Cheese pizzas sell for $5 each and pepperoni pizzas sell for $9 each.\r
\n" ); document.write( "\n" ); document.write( "Please help Bob figure out how many of each type of pizza he sold, and explain the process you used to arrive at the answer.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #573019 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Bob sold a total of \"+995+-+395+=+600+\"
\n" ); document.write( "Let \"+a+\" = number of cheese pizzas sold
\n" ); document.write( "Let \"+b+\" = number of pepperoni pizzas sold
\n" ); document.write( "-----------------------------------------
\n" ); document.write( "(1) \"+a+%2B+b+=+600+\"
\n" ); document.write( "(2) \"+5a+%2B+9b+=+4560+\"
\n" ); document.write( "-----------------------
\n" ); document.write( "Multiply both sides of (1) by
\n" ); document.write( "\"+5+\" and subtract (1) from (2)
\n" ); document.write( "(2) \"+5a+%2B+9b+=+4560+\"
\n" ); document.write( "(1) \"+-5a+-+5b+=+-+3000+\"
\n" ); document.write( "-------------------------
\n" ); document.write( "\"+4b+=+1560+\"
\n" ); document.write( "\"+b+=+390+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+a+%2B+390+=+600+\"
\n" ); document.write( "(1) \"+a+=+210+\"
\n" ); document.write( "----------------------
\n" ); document.write( "210 cheese pizzas were sold
\n" ); document.write( "390 pepperoni pizzas were sold
\n" ); document.write( "
\n" ); document.write( "
\n" );