document.write( "Question 1126089: Protein(grams/serving) macaroni 3 broccoli 2
\n" ); document.write( "Carbohydrates (grams/serving) macaroni 16 broccoli 4
\n" ); document.write( "How many servings of each would it take to get exactly 37 grams of protein and 164 grams of carbohydrates?
\n" ); document.write( "

Algebra.Com's Answer #742449 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
let x = the number of servings of macaroni and y = the number of servings of broccoli.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "macaroni has 3 grams of protein per serving and 2 gram of carbohydrates per serving.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "macaroni has 16 grams of carbohydrates per serving and broccoli has 4 grams of carbohydrates per serving.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "if you want a total of 37 grams of protetin and 164 grams of carbohydrates, ten your equations are:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "3x + 2y = 37
\n" ); document.write( "16x + 4y = 164\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the first equation says 3 grams of protein per serving times the number of servings of macaroni plus 2 grams of protein per serving times the number of servings of broccoli equals a total of 37 grams of protein.
\n" ); document.write( ".\r
\n" ); document.write( "\n" ); document.write( "the second equation says 16 grams of carbohydrates per serving times the number of servings of macaroni plus 4 grams of carbohydrates per serving times the number of servings of broccoli equals a total of 164 grams of carbohydrates.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you need to solve these equations simultaneously so the same number of servings of macaroni and broccoli apply to both equations.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "if you graphed these equations, your solution would be the intersection of the graphs of both equations, as shown below:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"$$$\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "from the graph, you can see that the intersection of the two lines is the point (9,5).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that means the value of x = 9 and y = 5.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that means 9 servings of macaroni and 5 servings of broccoli is the solution.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "3 * 9 + 2 * 5 = 27 + 10 = 37 grams of protein.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "16 * 9 + 4 * 5 = 144 + 20 = 164 grams of carbohydrates.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the solution looks good.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "to solve this problem algebraically, you would do the following:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "start with:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "3x + 2y = 37
\n" ); document.write( "16x + 4y = 164\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "multiply the first equation by 2 and leave the second equation as is to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "6x + 4y = 74
\n" ); document.write( "16x + 4y = 164\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "subtract the first equation from the second to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "10x = 90\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "divide both sides of this equation by 10 t9o get x = 9.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "replace x with 9 in either original equaiton (i used the first), to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "3*9 + 2y = 37 which becomes 27 + 2y = 37.
\n" ); document.write( "subtract 27 from both sides to get 2y = 10
\n" ); document.write( "solve for y to get y = 5.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your solution is x = 9 and y = 5.
\n" ); document.write( "since this agrees with the graphical solution, there is no need for further confirmation that the solution is valid.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your solution is you need 9 servings of macaroni and 5 servings of broccoli.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );