document.write( "Question 1097012: Ben was in charge of ordering 16 pizzas for the office party. He ordered three types of​ pizza: Cheese,​ Pepperoni, and Supreme. The cheese pizzas cost $8 each, the pepperoni pizzas cost $10 each, and the supreme pizzas cost $12 each. He spent exactly twice as much on the pepperoni pizzas as he did on the cheese pizzas. If Ben spent a total of $156 on​ pizza, how many pizzas of each type did he​ buy? \n" ); document.write( "
Algebra.Com's Answer #711419 by Boreal(15235)\"\" \"About 
You can put this solution on YOUR website!
C=x--$8
\n" ); document.write( "P=y--$10
\n" ); document.write( "S=16-(x+y)--$12. We know that S pizzas are everything up to 16 that hasn't been accounted for.
\n" ); document.write( "8x+10y+12(16-(x+y)=$156
\n" ); document.write( "We know that 10y=16x
\n" ); document.write( "Therefore, we have
\n" ); document.write( "8x+16x+192-12(x+1.6x)=156
\n" ); document.write( "24x+192-31.2x=156
\n" ); document.write( "-7.2x=-36
\n" ); document.write( "x=5
\n" ); document.write( "cost of C pizzas is $8*5=$40
\n" ); document.write( "Therefore P=$80, and that would be 8 P pizzas.
\n" ); document.write( "That leaves 3 S pizzas, and those would be $36
\n" ); document.write( "The cost adds to $156; the number to 16.
\n" ); document.write( "Keep it in two variables, x and y. The Supremes are everything left or 16-(x+y).
\n" ); document.write( "
\n" );