document.write( "Question 37526: 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. Find the cost of a chocolate bar and the cost of a pack of gum. \n" ); document.write( "
Algebra.Com's Answer #23126 by fractalier(6550)\"\" \"About 
You can put this solution on YOUR website!
Let C be the number of chocolate bars.
\n" ); document.write( "Let G be the number of packs of gum.
\n" ); document.write( "Then we have two algebra sentences involving C and G:
\n" ); document.write( "3C + G = 1.75
\n" ); document.write( "2C + 4G = 2.00
\n" ); document.write( "We can solve the first equation for G and substitute its value into the second equation...
\n" ); document.write( "G = -3C + 1.75
\n" ); document.write( "2C + 4(-3C + 1.75) = 2.00
\n" ); document.write( "2C - 12C + 7 = 2.00
\n" ); document.write( "-10C = -5
\n" ); document.write( "C = .50
\n" ); document.write( "and if C = .50, then
\n" ); document.write( "G = -3(.50) + 1.75
\n" ); document.write( "G = -1.50 + 1.75
\n" ); document.write( "G = .25
\n" ); document.write( "
\n" );