document.write( "Question 1138848: A person was in charge of ordering 26 pizzas for the office party. He ordered three types of​ pizza: cheese,​ pepperoni, and supreme. The cheese pizzas cost $6 ​each, the pepperoni pizzas cost $9 ​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 the person spent a total of $222 on​ pizza, how many pizzas of each type did he​ buy? \n" ); document.write( "
Algebra.Com's Answer #756631 by greenestamps(13198)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "c = # of cheese pizzas
\n" ); document.write( "p = # of pepperoni pizzas
\n" ); document.write( "s = # of supreme pizzas

\n" ); document.write( "\"c%2Bp%2Bs+=+26\" the total number of pizzas was 26
\n" ); document.write( "\"6c%2B9p%2B12s+=+222\" the total cost was $222
\n" ); document.write( "\"9p+=+2%286c%29\" the cost of the pepperoni pizzas was twice the cost of the cheese pizzas

\n" ); document.write( "There is an endless number of different paths for solving that system of 3 equations in 3 variables. The path I chose involved many twists and turns and was not particularly pleasant....

\n" ); document.write( "So instead of finishing the problem that way, let's spend a little effort to set up the problem using a single equation in a single variable and see if the resulting path to the solution is easier.

\n" ); document.write( "He spent twice as much on the $9 pepperoni pizzas as he spent on the $6 cheese pizzas:

\n" ); document.write( "\"9p+=+2%286c%29\"
\n" ); document.write( "\"9p+=+12c\"
\n" ); document.write( "\"3p+=+4c\"

\n" ); document.write( "Using this, we can let p=4x and c=3x; then 3p=4c=12x.

\n" ); document.write( "And then with p=4x and c=3x, and with 26 pizzas in all, the number of supreme pizzas is 26-7x.

\n" ); document.write( "Then...

\n" ); document.write( "\"6%283x%29%2B9%284x%29%2B12%2826-7x%29+=+222\"
\n" ); document.write( "\"18x%2B36x%2B312-84x+=+222\"
\n" ); document.write( "\"-30x%2B312+=+222\"
\n" ); document.write( "\"90+=+30x\"
\n" ); document.write( "\"x+=+3\"

\n" ); document.write( "ANSWER:
\n" ); document.write( "cheese: 3x = 9
\n" ); document.write( "pepperoni: 4x = 12
\n" ); document.write( "supreme: 26-7x = 5

\n" ); document.write( "With the two ways I chose to solve the problem, the little extra effort required to set up an equation using a single variable resulted in an equation that required far less effort to solve than the system of 3 equations in 3 variables.

\n" ); document.write( "While it is of course important to understand how to set up a problem like this with 3 variables directly from the given information, it is also important to know that very often the overall effort required to solve a problem will be greatly reduced if you can set up the problem using a single variable.
\n" ); document.write( "
\n" );