document.write( "Question 1040893: Ben was in charge of ordering 32 pizzas for the office party. He ordered three types of pizza: Cheese, pepperoni and supreme. The cheese pizza cost $7 each, the pepperoni pizza cost $10 each, and the supreme pizza cost $13 each. He spent exactly twice as much on the pepperoni pizzas as he did on the cheese pizzas. If Ben spent a total of $314 on pizza, how many pizzas did he order? \n" ); document.write( "
Algebra.Com's Answer #655820 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!
1.\"C%2BP%2BS=32\" - Total number of pizzas
\n" ); document.write( "2.\"7C%2B10P%2B13S=314\" - Total cost of pizzas
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( "\"10P=2%287C%29\"
\n" ); document.write( "\"10P=14C\"
\n" ); document.write( "3.\"5P=7C\" - Relationship between cheese and pepperoni
\n" ); document.write( "From eq. 1,
\n" ); document.write( "\"5C%2B5P%2B5S=160\"
\n" ); document.write( "Substituting from 3,
\n" ); document.write( "\"5C%2B7C%2B5S=160\"
\n" ); document.write( "4.\"12C%2B5S=160\"
\n" ); document.write( "From eq. 2,
\n" ); document.write( "\"7C%2B14C%2B13S=314\"
\n" ); document.write( "5.\"21C%2B13S=314\"
\n" ); document.write( "Multiply eq. 4 by 7 and eq. 5 by 4 and subtract them to eliminate C.
\n" ); document.write( "\"84C%2B35S-84C-52S=1120-1256\"
\n" ); document.write( "\"-17S=-136\"
\n" ); document.write( "\"S=8\"
\n" ); document.write( "Then from 4,
\n" ); document.write( "\"12C%2B5%288%29=160\"
\n" ); document.write( "\"12C=120\"
\n" ); document.write( "\"C=10\"
\n" ); document.write( "and from 3,
\n" ); document.write( "\"5P=7%2810%29\"
\n" ); document.write( "\"P=14\"
\n" ); document.write( "
\n" ); document.write( "
\n" );