Finding a combined ratio from two other ratios

1k Views Asked by At

So I have a problem with ratios that I need to sort out.

I want to know how much of each of two types of food I need to eat in order to get a fixed amount of protein and carbs.

an example...

I want to eat 33g of protein and 44g or carbs in one meal (more importantly a ratio of 0.75 protein to carbs for this meal).

My two foods are chicken (28.9g protein, 0.5g carbs per 100g) pasta (6g protein, 31g carbs per 100g)

So, how many grams of chicken and how many grams of pasta do I eat in order to get 33g protein, 44g carbs?

Thanks

3

There are 3 best solutions below

2
On BEST ANSWER

Fun question. We can write the following equations:

28.9x + 6y = 33; 0.5x + 31y = 44

Which gives us x = .85, y = 1.4 (roughly).

So 85 grams of chicken, and 140 grams of pasta.

I see that this is an example, and not the problem you want solved, so let me elaborate further.

Let x be the factor of 100 g of chicken you have to eat. Let y be the factor of 100 g of pasta you have to eat. Since we know how much protein is in 100 grams of both food, the total protein is:

28.9x + 6y = protein

And similarly, the total amount of carbs is

0.5x + 31y = carbs

Now, you know your goal, so set the "protein" equation to 33 and the "carbs" equation to 44.

28.9x + 6y = 33 0.5x + 31y = 44

Now, we can find x and y with some basic algebra. First, solve for x in the first equation. Then, plug that result into the second equation's x. Then, you can find the value of y. This allows you to find the value of x, by plugging y's numeric value into either equation.

When you have x and y, you have the factors of 100g for chicken and pasta, so 100x and 100y are the numbers you seek.

1
On

Let $c$ be the number of grams of chicken and $p$ the number of grams of pasta you eat. What are the equations and the constraints governing your problem, in terms of $c,p$? Could you solve this equation?

2
On

EDIT: see bottom for a method of creating any number of combinations to create this proportion (0.75) of protein and carbs.

We can set this up as a matrix, and solve for any any combination of your choosing.

Firstly, write out the equations for this problem (the equation for protein, and the equation for carbs):

28.9*(chicken) + 6*(pasta) = 33

0.5*(chicken) + 31*(pasta) = 44

Note that the chicken values are both on the left, and the the pasta values on the right. We can use these numbers to create vectors as follows: for chicken (28.9g protein; 0.5g carbs) the vector is $\begin{bmatrix}28.9\\0.5\end{bmatrix}$ (protien value on top, carbs on bottom, as that is how I arranged the equations above). The vector for pasta (6g protein; 31g carbs) is $\begin{bmatrix}6\\31\end{bmatrix}$

Finally, we can form a matrix from these equations (see the vectors above) as follows: $\begin{bmatrix}28.9 & 6 & 33\\0.5 & 31 & 44\end{bmatrix}$

Note that our goal can be described as follows: find values c1 and c2 such that:

c1*$\begin{bmatrix}28.9\\0.5\end{bmatrix}$ + c2*$\begin{bmatrix}6\\31\end{bmatrix}$ = $\begin{bmatrix}33\\44\end{bmatrix}$

Upon row reducing the matrix, we get: $\begin{bmatrix}1 & 0 & 0.85\\0 & 1 & 1.4\end{bmatrix}$

As equations, this equates to:

1*x + 0*y = 0.85 = c1 (how many servings of chicken we need)

0*x + 1*y = 1.4 = c2 (how many servings of pasta we need)

If you only care about the proportion, then you can scale this vector to produce an infinite number of combinations that create the same proportion of protein to carbs. For instance, multiply by 10 to get 8.5 servings of chicken and 14 servings of pasta. This will give you (roughly) 330g of protein and 440g of carbs, for a proportion of 0.75 protein:carbs.