document.write( "Question 767820: Two boxes of groceries each have a mass of 20 kg. The mass of the first box increases to 29 kg after a
\n" ); document.write( "bag of potatoes and 3 bags of rice are added to it. The mass of the second box decreases to 16 kg after
\n" ); document.write( "2 bags of potatoes are removed and 1 bag of rice is added to it. What are the individual masses of a
\n" ); document.write( "bag of potatoes and a bag of rice?
\n" ); document.write( "

Algebra.Com's Answer #467944 by josgarithmetic(39618)\"\" \"About 
You can put this solution on YOUR website!
Unknown variables are kg per bag of potatos, p;
\n" ); document.write( "and kg per bag of rice, r.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Box1:
\n" ); document.write( "kilograms increase 29 kg with 1 bag potatos and 3 bags rice.
\n" ); document.write( "\"29=1%2Ap%2B3%2Ar\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Box2:
\n" ); document.write( "kilograms decrease by removal of potatos but addition of rice...
\n" ); document.write( "DECREASE by 16 kilograms.
\n" ); document.write( "\"-16=-2%2Ap%2B1%2Ar\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Simpler and more convenient form for those equations as a system:
\n" ); document.write( "\"highlight%28-2p%2Br=-16%29\" and \"highlight%28p%2B3r=29%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the \"-16\" equation can be further handled, \"2p-r=16\".
\n" ); document.write( "Also if multiply this entire equation by 3 and then add to the \"29\" equation we can then directly solve for p; and then go back to either equation and solve for r.
\n" ); document.write( ".
\n" ); document.write( "------------------------------------------------------------------------------
\n" ); document.write( "ANSWER: In fact, should find p=11 and therefore r=6 kilograms per bag.
\n" ); document.write( "------------------------------------------------------------------------------
\n" ); document.write( "
\n" );