document.write( "Question 51687This question is from textbook finite mathematics
\n" ); document.write( ": im having a hard time trying to figure out the formula. boxes of candy containing creams and caramels sells for $8 per box and hold 50 pieces. caramels cost $0.10 to produce and creams cost 0.20. how many creams and caramels should be in each box for no profit or loss. i have come up with a formula but it is not working, please help. .10x+.20y=8(50). ive tried different but this seems to be the way other formulas are in but wont work for me. \n" ); document.write( "
Algebra.Com's Answer #34484 by tutorcecilia(2152)\"\" \"About 
You can put this solution on YOUR website!
Use the standard formula of a line to solve:
\n" ); document.write( "Ax+By=C
\n" ); document.write( "A=rate of item A
\n" ); document.write( "x=amount of item A
\n" ); document.write( "B=rate of item
\n" ); document.write( "y=amount of item B
\n" ); document.write( "C=(rate of C)(Amount of item C)
\n" ); document.write( "C = ($8 X 1 box = $8)
\n" ); document.write( "C also equals 50 individual pieces of candy
\n" ); document.write( "So, x+y=50 or 50-x=y
\n" ); document.write( ".
\n" ); document.write( "Ax+By=C
\n" ); document.write( "Setting it up:
\n" ); document.write( "(Rate A)(amount A) + (Rate B)(amount B)=C
\n" ); document.write( ".10x+.20y=8 [The equation of the line]
\n" ); document.write( "(.10)(x)+(.20)(50-x)=8 [Substitute (50-x)=y]
\n" ); document.write( ".10x+10-.20x=8 [Solve for x]
\n" ); document.write( "-.10x=-2
\n" ); document.write( "x=20
\n" ); document.write( ".\r
\n" ); document.write( "\n" ); document.write( "Check by plugging all of the values back into the original equation:
\n" ); document.write( "Ax+By=C
\n" ); document.write( "(.10)(20)+(.20)((50-20)=8
\n" ); document.write( "(.10)(20)+(.20)(50-20)=8
\n" ); document.write( "2+10-4=8
\n" ); document.write( "8=8 [Checks out]\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );