
Andy C. answered 08/02/17
Tutor
4.9
(27)
Math/Physics Tutor
Let x be the number of sacks of soybeans.
Ley y be the number of sacks of oats.
From the given data:
Protein: 70x + 21y = 168
21y = 168 - 70x
y = (-70/21)X + 8 <--- writes the equation of this line in slope intercept form
Fat: 8x + 7y = 24
7y = 24 - 8x
y = (-8/7)X + 24/7 <--- writes the equation of this line in slope intercept form
Mineral Ash: 7x + 1y = 14
y = - 7x + 14 <--- writes the equation of this line in slope intercept form
The cost function is C(x,y) = $21X + $7Y
Now we need to find where these three lines meet.
A quick formula for doing that is
x-intersect = (B2-B1)/(M1-M2)
where M1 and M2 are the slopes of the lines and
B1 and B2 are the intercepts of the lines.
Ley y be the number of sacks of oats.
From the given data:
Protein: 70x + 21y = 168
21y = 168 - 70x
y = (-70/21)X + 8 <--- writes the equation of this line in slope intercept form
Fat: 8x + 7y = 24
7y = 24 - 8x
y = (-8/7)X + 24/7 <--- writes the equation of this line in slope intercept form
Mineral Ash: 7x + 1y = 14
y = - 7x + 14 <--- writes the equation of this line in slope intercept form
The cost function is C(x,y) = $21X + $7Y
Now we need to find where these three lines meet.
A quick formula for doing that is
x-intersect = (B2-B1)/(M1-M2)
where M1 and M2 are the slopes of the lines and
B1 and B2 are the intercepts of the lines.
----------------------------------------------------------------------
1st and 2nd lines meet at : (24/7 - 8)/(-70/21 - (-8/7)) = 48/23
1st and 2nd lines meet at : (24/7 - 8)/(-70/21 - (-8/7)) = 48/23
Plugging into the first line: (-70/21)(48/23)+8 = 24/23
Plugging into the second line: (-8/7)(48/23) + 24/7 = 24/23
So indeed, the first two lines intersect at (x=48/23, y = 24/23)
The cost for these number of bags is 21(48/23) + 7(24/23) = $51.13
-----------------------------------------------------------------------
1st and 3rd lines meet at : (14 - 8) / ((-70/21) - (-7)) = 126/77
Plugging into the first line: (-70/21)(126/77) + 8 = 588/231 = 2 and 6/11
Plugging into the third line: -7(126/77) + 14 = 28/11 = 2 and 6/11
So indeed , the first and third lines meet at ( x=126/77, y = 28/11)
The cost for these number of bags is 21(126/77) + 7(28/11) = $52.18
-----------------------------------------------------------------
2nd and 3rd lines meet at : (14 - 24/7) / ( - 8/7 - (-7)) = 74/41
Plugging into the second line: (-8/7)(74/41) + 24/7 = 392/287 = 1 and 15/41
Plugging into the third line: -7(74/41) + 14 = 56/41 = 1 and 15/41
So indeed, the second and third lines meet at ( x = 74/41, y = 56/41)
The cost for these number of bags is 21(74/41) + 7(56/41) = $47.46
--------------------------------------------------------------------
FINAL ANSWER:
THE WINNER IS OPTION #3.
The third scenario is cheaper.
You need
( x = 74/41, y = 56/41)
x= 74/41 = 1 and 33/41 bags of soybeans (or 1.0848 bags)
y = 56/41 = 1 and 15/41 bags of oats (1.36585 36585 36585 36585..... bags)
I have no idea how you are going to do that.
-----------------------------------------------------------------
y = 56/41 = 1 and 15/41 bags of oats (1.36585 36585 36585 36585..... bags)
I have no idea how you are going to do that.
-----------------------------------------------------------------