document.write( "Question 842947: James researched these nutrition facts:
\n" ); document.write( "1 g of soy milk has 0.005 g of carbohydrates and 0.030 g of protein.
\n" ); document.write( "1 g of vegtables has 0.14 g of carbohydrates and 0.030 g of protein.\r
\n" ); document.write( "\n" ); document.write( "James wants his lunch to have 50 g of carbohydrates and 20 g of protein.
\n" ); document.write( "how many grams of soy milk and vegtables does he need?
\n" ); document.write( "

Algebra.Com's Answer #507790 by josgarithmetic(39626)\"\" \"About 
You can put this solution on YOUR website!
x for grams of milk(soy) and y for grams of vegetables.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Account for carbohydrates:(0.005)x+(0.14)y=50
\n" ); document.write( "5x+140y=50000
\n" ); document.write( "x+28y=10000\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Account for protein: (0.030)x+(0.030)y=20
\n" ); document.write( "3x+3y=2000\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You may want to try adjustment of these for use of the Elimination Method, the system being:
\n" ); document.write( "----------------------
\n" ); document.write( "x+28y=50000
\n" ); document.write( "----------------------
\n" ); document.write( "3x+3y=2000
\n" ); document.write( "----------------------\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "3x+84y=300000
\n" ); document.write( "-
\n" ); document.write( "3x+3y=2000\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "81y=300000-2000=298000
\n" ); document.write( "y=298000/81
\n" ); document.write( "y=3679 grams of vegetables (probably wrong)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x+28y=50000
\n" ); document.write( "x=50000-28y
\n" ); document.write( "x=50000-28(3679)
\n" ); document.write( "x=-53012 Which obviously makes no sense.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Either I made a mistake which I have not found (after rechecking the whole solution once) or one of your given datum is wrong. This would otherwise be a reasonably simple two-variable linear system exercise.
\n" ); document.write( "
\n" );