document.write( "Question 1030960: A certain diet consists of dishes A, B and C. Each serving of A has 1 gram of fat, 2 grams of carbohydrate and 4 grams of protein. Each serving of B has 2 grams of fat, 1 gram of carbohydrate and 3 grams of protein. Each serving of C has 2 grams of fat, 4 grams of carbohydrate and 3 grams of protein. The diet allows 15 grams of fat, 24 grams of carbohydrates and 30 grams of protein. How many servings of dish ca be eaten. \r
\n" ); document.write( "\n" ); document.write( "Need three linear equations.
\n" ); document.write( "

Algebra.Com's Answer #645723 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+a+\" = number of servings of dish A allowed
\n" ); document.write( "Let \"+b+\" = number of servings of dish B allowed
\n" ); document.write( "Let \"+c+\" = number of servings of dish C allowed
\n" ); document.write( "-----------------------------------------
\n" ); document.write( "Grams of fat allowed:
\n" ); document.write( "(1) \"+1a+%2B+2b+%2B+2c+=+15+\"
\n" ); document.write( "Grams of carbs allowed:
\n" ); document.write( "(2) \"+2a+%2B+1b+%2B+4c+=+24+\"
\n" ); document.write( "Grams of protein allowed:
\n" ); document.write( "(3) \"+4a+%2B+3b+%2B+3c+=+30+\"
\n" ); document.write( "------------------------
\n" ); document.write( "Multiply both sides of (1) by \"+2+\"
\n" ); document.write( "and subtract (2) from (1)
\n" ); document.write( "(1) \"+2a+%2B+4b+%2B+4c+=+30+\"
\n" ); document.write( "(2) \"+-2a+-+1b+-+4c+=+-24+\"
\n" ); document.write( "-------------------------
\n" ); document.write( "\"+3b+=+6+\"
\n" ); document.write( "\"+b+=+2+\"
\n" ); document.write( "--------------
\n" ); document.write( "Plug this result into (1) and (3)
\n" ); document.write( "(1) \"+1a+%2B+2%2A2+%2B+2c+=+15+\"
\n" ); document.write( "(1) \"+1a+%2B+2c+=+11+\"
\n" ); document.write( "and
\n" ); document.write( "(3) \"+4a+%2B+3%2A2+%2B+3c+=+30+\"
\n" ); document.write( "(3) \"+4a+%2B+3c+=+24+\"
\n" ); document.write( "---------------------------
\n" ); document.write( "Multiply both sides of (1) by \"+4+\"
\n" ); document.write( "and subtract (3) from (1)
\n" ); document.write( "(1) \"+4a+%2B+8c+=+44+\"
\n" ); document.write( "(2) \"+-4a+-+3c+=+-24+\"
\n" ); document.write( "----------------------
\n" ); document.write( "\"+5c+=+20+\"
\n" ); document.write( "\"+c+=+4+\"
\n" ); document.write( "--------------
\n" ); document.write( "Plug these results back into (1)
\n" ); document.write( "(1) \"+1a+%2B+2c+=+11+\"
\n" ); document.write( "(1) \"+1a+%2B+2%2A4+=+11+\"
\n" ); document.write( "(1) \"+a+=+3+\"
\n" ); document.write( "---------------
\n" ); document.write( "3 servings of dish A are allowed
\n" ); document.write( "2 servings of dish B are allowed
\n" ); document.write( "4 servings of dish C are allowed
\n" ); document.write( "---------------------------
\n" ); document.write( "check:
\n" ); document.write( "(1) \"+1a+%2B+2b+%2B+2c+=+15+\"
\n" ); document.write( "(1) \"+1%2A3+%2B+2%2A2+%2B+2%2A4+=+15+\"
\n" ); document.write( "(1) \"+3+%2B+4+%2B+8+=+15+\"
\n" ); document.write( "(1) \"+15+=+15+\"
\n" ); document.write( "OK -you can check (2) and (3)
\n" ); document.write( "
\n" );