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 #655821 by jorel555(1290)\"\" \"About 
You can put this solution on YOUR website!
Let c=cheese pizza, p=pepperoni pizza, and s=supreme pizza. Then
\n" ); document.write( "c+p+s=32
\n" ); document.write( "7c+10p+13s=314
\n" ); document.write( "10p=2(7c);10p=14c
\n" ); document.write( "10c+10p+10s=320
\n" ); document.write( "7c+10p+13s=314
\n" ); document.write( "3c-3s=6;
\n" ); document.write( "7c+14c+13s=314
\n" ); document.write( "21c+13s=314
\n" ); document.write( "21c-21s=42
\n" ); document.write( "Subtracting the last equation from the second-to-last, we get
\n" ); document.write( "34s=272
\n" ); document.write( "s=8 supreme pizzas
\n" ); document.write( "p=14 pepperoni pizzas
\n" ); document.write( "c=10 cheese pizzas ☺☺☺☺\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );