document.write( "Question 941966: Ming and Carlos are selling cookie dough for a school fundraiser. Customers can buy packages of chocolate chip cookie dough and packages of gingerbread cookie dough. Ming sold 8 packages of chocolate chip cookie dough and 12 packages of gingerbread cookie dough for a total of $364. Carlos sold 1 package of chocolate chip cookie dough and 4 packages of gingerbread cookie dough for a total of $93. Find the cost each of one package of chocolate chip cookie dough and one package of gingerbread cookie dough.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #574227 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
Ming and Carlos are selling cookie dough for a school fundraiser.
\n" ); document.write( " Customers can buy packages of chocolate chip cookie dough and packages of gingerbread cookie dough.
\n" ); document.write( " Ming sold 8 packages of chocolate chip cookie dough and 12 packages of gingerbread cookie dough for a total of $364.
\n" ); document.write( " Carlos sold 1 package of chocolate chip cookie dough and 4 packages of gingerbread cookie dough for a total of $93.
\n" ); document.write( " Find the cost each of one package of chocolate chip cookie dough and one package of gingerbread cookie dough.
\n" ); document.write( ":
\n" ); document.write( "let c = cost of chip cookies
\n" ); document.write( "let g = cost of ginger cookies
\n" ); document.write( ":
\n" ); document.write( "Ming's sales: 8c + 12g = 364
\n" ); document.write( "Carl's sales: 1c + 4g = 93
\n" ); document.write( ":
\n" ); document.write( "Using the 2nd equation for substitution in the 1st equation:
\n" ); document.write( "c + 4g = 93
\n" ); document.write( "c = (93-4g)
\n" ); document.write( ":
\n" ); document.write( "8(93-4g) + 12g = 364
\n" ); document.write( "744 - 32g + 12g = 364
\n" ); document.write( "-32g + 12g = 364 - 744
\n" ); document.write( "-20g = -380
\n" ); document.write( "g = -380/-20
\n" ); document.write( "g = +$19 for the ginger cookie dough
\n" ); document.write( "then
\n" ); document.write( "c = 93 - 4(19)
\n" ); document.write( "c = $17 for the chip dough
\n" ); document.write( ":
\n" ); document.write( ":
\n" ); document.write( "YOu can confirm this for yourself with these values for c and g in the original equations
\n" ); document.write( "
\n" ); document.write( "
\n" );