document.write( "Question 121815: Sally bought three chocolate bars and a pack of gum and paid $1.75. Jake bought two chocolate bars and four packs of gum and paid $2.00. What's the cost of a chocolate bar and a pack of gum? \n" ); document.write( "
Algebra.Com's Answer #89429 by solver91311(24713)\"\" \"About 
You can put this solution on YOUR website!
Let's say that a chocolate bar costs 'c' cents, and a pack of gum costs 'g' cents.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Sally bought 3 chocolate bars, so she spent 3c cents on chocolate. Likewise, she spent 1g, or just g, cents on gum. Together she spent $1.75, or 175 cents. Now we can write:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"3c%2Bg=175\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "A similar analysis gives us an expression for Jake's purchase:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"2c%2B4g=200\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now we have a system of two linear equations in two variables. We are interested in determining the ordered pair (c,g) that satisfies both equations. This looks like a good candidate for the elimination method because the substitution expressions look a little messy to me. (This is a matter of personal preference, or perhaps the instructions in an assignment. Either way, properly performed gets you to the same place)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"3c%2Bg=175\"
\n" ); document.write( "\"2c%2B4g=200\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Multiply equation 1 by -4:
\n" ); document.write( "\"-12c%2B%28-4%29g=-700\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Add the result to the second equation:
\n" ); document.write( "\"-10c%2B0g=-500\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Divide by -10
\n" ); document.write( "\"c=50\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now we know that chocolate bars cost 50 cents. Substitute this value into either original equation:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"3%2850%29%2Bg=175\"
\n" ); document.write( "\"150%2Bg=175\"
\n" ); document.write( "\"g=175-150=25\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So gum costs 25 cents.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Finally, convert your answers back to dollars and cents notation because that was the form of the given values for money in this problem,\r
\n" ); document.write( "\n" ); document.write( "Chocolate Bars: $0.50
\n" ); document.write( "Gum: $0.25\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Check the answer:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"3%2850%29%2B25=150%2B25=175\" and
\n" ); document.write( "\"2%2850%29%2B4%2825%29=100+%2B+100+=+200\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );