document.write( "Question 845360: boxes of candy are sold for $12.50 and holds 30 pieces of candy, some creme and others carmel. Carmel cost $0.25 and creams cost $0.45 how many should be made of each to make a $3 profit \n" ); document.write( "
Algebra.Com's Answer #509244 by josgarithmetic(39618)\"\" \"About 
You can put this solution on YOUR website!
One would figure that the 3 dollar profit comes from the selling price, so the non-profit part of the selling price is $9.50. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x for count of creme pieces
\n" ); document.write( "y for count of carmel pieces\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Accounting for price: \"0.45x%2B0.25y=9.50\"
\n" ); document.write( "Accounting for total pieces per box: \"x%2By=30\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is a system of two linear equations with two unknowns.
\n" ); document.write( "Multiply the price equation by 20.
\n" ); document.write( "\"9x%2B5y=190\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "SOLVE THE SYSTEM:
\n" ); document.write( "-------------------------
\n" ); document.write( "x+y=30
\n" ); document.write( "-------------------------
\n" ); document.write( "9x+5y=190
\n" ); document.write( "-------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Elimination Method, factor of 5 upon the piece count equation,
\n" ); document.write( "\"9x%2B5y-%285x%2B5y%29=190-150\"
\n" ); document.write( "\"4x=40\"
\n" ); document.write( "\"highlight%28x=10%29\" and from this, \"highlight%28y=20%29\".
\n" ); document.write( "-
\n" ); document.write( "ANSWER: 10 creme pieces and 20 carmel pieces.
\n" ); document.write( "
\n" );