```Question 6347
In this case, we'll let b be the number of servings of beans and s be the number of servings of soup.

The diet requires 13 grams of protein total. So, if the beans have 1 gram of protein per serving, then there will be 1*b grams of protein in b servings of beans. We also need to add up the protein content of the soup. If each soup serving contains 3 grams of protein, then there will be 3*s grams of protein in s servings of soup. And we wanted the total to be 13 grams, so we have {{{ b + 3s = 13 }}}

The diet also requires 43 grams of carbs. If the beans have 4 grams of carbs, there will be 4b grams of carbs in b servings of beans. If the soup has 9 grams of carbs, then there will be 9s grams of carbs in s servings of soup. So our carb total equation will be {{{ 4b + 9s = 43 }}}.

We now have a system of linear equations. There are several ways to do this, like graphing (and then looking at where the lines meet), vertical addition/subtraction, or substitution. I think it's easier to use substitution because one of the equations (the {{{ b + 3s = 13 }}}) already has a variable by itself, which is the b. We can rearrange that as {{{ b = 13 - 3s }}}. We can then substitute the 13 - 3s for the b in the other equation:

{{{ 4(13 - 3s) + 9s = 43 }}} <--- solving for s will give us the number of soup servings.

{{{ 52 - 12s + 9s = 43 }}} <--- used distributive property

{{{ 52 - 3s = 43 }}} <--- combined like terms

{{{ -3s = -9 }}}

{{{ s = 3 }}} <----- So the diet recommended 3 servings of soup.

{{{ b + 3(3) = 13 }}} <----- We substituted 3 for s in one of the equations. BTW, it doesn't matter which one of the two equations to use. You'll get the same answer. We just chose the first equation because it's easier to work with.

{{{ b = 4 }}} <---- So the diet recommended 4 servings of soup.```