document.write( "Question 148918: For Monday mornings staff meeting, Jim bought 2 bags of bagels and 3 packages of cream cheese and paid $9.75 (excluding sales tax). For Fridays meeting, he bought 4 bags of bagels and 2 packages of cream cheese and paid $12.50 (again, excluding sales tax). How much do bags of bagels and packages of cream cheese cost? \n" ); document.write( "
Algebra.Com's Answer #109235 by mangopeeler07(462)\"\" \"About 
You can put this solution on YOUR website!
x=cost of bagels (in cents)
\n" ); document.write( "y=cost of cream cheese (in cents)
\n" ); document.write( "coefficient=quantity\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Jim bought 2 bags of bagels and 3 packages of cream cheese and paid $9.75:
\n" ); document.write( "2x+3y=975\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "He bought 4 bags of bagels and 2 packages of cream cheese and paid $12.50:
\n" ); document.write( "4x+2y=1250\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So you have two equations:
\n" ); document.write( "2x+3y=975
\n" ); document.write( "4x+2y=1250\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Multiply the first equation by negative two:
\n" ); document.write( "-4x-6y=-1950
\n" ); document.write( "4x+2y=1250\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Add the equations
\n" ); document.write( "-4y=-700\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You have successfully eliminated x from the equation (for now).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Divide by -4
\n" ); document.write( "y=175\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "That is the cost of the cream cheese in cents. Plug that back into either original equation, how about the first one:
\n" ); document.write( "2x+3(175)=975\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Simplify
\n" ); document.write( "2x+525=975\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Subtract 525 from both sides
\n" ); document.write( "2x=450\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Divide by 2
\n" ); document.write( "x=225\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "That is the cost of the bagels in cents.
\n" ); document.write( "So,\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "1 Package of Cream cheese=$1.75
\n" ); document.write( "1 Bag of Bagels=$2.25
\n" ); document.write( "
\n" );