document.write( "Question 1131279: The grocery store we use does not mark prices on its goods.My wife went to this​ store, bought two packages of bacon and five cartons of eggs, and paid a total of $14.03. Not knowing that she went to the store, I also went to the same store, purchased five packages of bacon and two cartons of eggs, and paid a total of $19.43. Now we want to return two packages of bacon and two cartons of eggs. How much will be refunded? \n" ); document.write( "
Algebra.Com's Answer #747903 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+a+\" = cost in dollars/pkg of bacon
\n" ); document.write( "Let \"+b+\" = cost in dollars/carton of eggs
\n" ); document.write( "-------------------------------------------------
\n" ); document.write( "(1) \"+2a+%2B+5b+=+14.03+\"
\n" ); document.write( "(2) \"+5a+%2B+2b+=+19.43+\"
\n" ); document.write( "----------------------------------
\n" ); document.write( "Multiply both sides of (1) by \"+2+\"
\n" ); document.write( "Multiply both sides of (2) by \"+5+\"
\n" ); document.write( "Subtract (1) from (2)
\n" ); document.write( "(2) \"+25a+%2B+10b+=+97.15+\"
\n" ); document.write( "(1) \"+-4a+-+10b+=+-28.06+\"
\n" ); document.write( "----------------------------------
\n" ); document.write( "\"+21a+=+69.09+\"
\n" ); document.write( "\"+a+=+3.29+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+2%2A3.29+%2B+5b+=+14.03+\"
\n" ); document.write( "(1) \"+6.58+%2B+5b+=+14.03+\"
\n" ); document.write( "(1) \"+5b+=+7.45+\"
\n" ); document.write( "(1) \"+b+=+1.49+\"
\n" ); document.write( "-------------------------------------
\n" ); document.write( "Return 2 pkgs of bacon for: \"+2a+=+6.58+\"
\n" ); document.write( "Return 2 cartons of eggs for: \"+2b+=+2.98+\"
\n" ); document.write( "----------------------------------------------------
\n" ); document.write( "check:
\n" ); document.write( "(1) \"+2a+%2B+5b+=+14.03+\"
\n" ); document.write( "(1) \"+2%2A3.29+%2B+5%2A1.49+=+14.03+\"
\n" ); document.write( "(1) \"+6.58+%2B+7.45+=+14.03+\"
\n" ); document.write( "(1) \"+14.03+=+14.03+\"
\n" ); document.write( "---------------------------------------
\n" ); document.write( "(2) \"+5a+%2B+2b+=+19.43+\"
\n" ); document.write( "(2) \"+5%2A3.29+%2B+2%2A1.49+=+19.43+\"
\n" ); document.write( "(2) \"+16.45+%2B+2.98+=+19.43+\"
\n" ); document.write( "(2) \"+19.43+=+19.43+\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" );