# math is not fun

**URL:** <https://boards.straightdope.com/t/math-is-not-fun/173149>\
**Category:** Factual Questions\
**Created:** [May 5, 2003, 9:43am UTC](https://boards.straightdope.com/t/math-is-not-fun/173149 "2003-05-05T09:43:22Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dauerbach](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dauerbach](https://boards.straightdope.com/u/dauerbach)\
**Post date:** [May 5, 2003, 9:43am UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/1 "2003-05-05T09:43:22Z")

</div>

So, I have been working on this last problem for three hours. Can you say obsessive compulsive personality. I sure can.

Selling plain and caramel popcorn balls. 300 hours to prepare the balls for sale. It takes 1/10 of an hour to prepare the plain popcorn balls and 4/5 of an hour for the caramel ones. 250 hours to package. Plain takes 1/5 of an hour, caramel 9/20 of an hour.  
$260 to spend on supplies. Plain costs 10 cents/lb, caramel 40 cents/lb. Maximize profit if plain balls are 35 cents, caramel ones 75 cents.

I ended up with three equations:

x\<=3000-8y  
x\<=1,250-45y  
x\<=1,600-4y

Then I graphed. The last equation does not intersect the other two. The first two intersect at (330,335) which is a solution for the first equation, but not the other two. I tweaked the numbers around and still cannot come up with something that satisfies all equations, and I have no clue what to do with the line that refuses to help form a polygon. I know there are other ways to solve this, I just don’t know what they are. Could anyone PLEASE give me a hand here?

---

<div class="post-metadata">

**Author:** ![Shade](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Shade](https://boards.straightdope.com/u/Shade)\
**Post date:** [May 5, 2003, 10:14am UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/2 "2003-05-05T10:14:07Z")

</div>

Do you mean 45/20 y in your second equation and 2600 in the third?

Remember, to satisfy these equations you don’t have to be _on_ the line, merely below/left of it. Draw the three lines on the graph. Shade the right/top of each line to indicate infeasibility. Shade -ve x and y. The origin and the (positive) points on the axes closest to the origin where a line intersects the axis should be some corners of the unshaded polygon, which should be bounded at the top and right by two or three of the lines.

It’s entirely possible that one restraint is not needed, eg. try x\<=1,y\<=2,y\<=3. Every point satisfied by the first two equations is also satisfied by the last. Conversely there will be no extreme satisfying points on the third line because there are all ruled out by y\<=1.

Good luck

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [May 5, 2003, 10:17am UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/3 "2003-05-05T10:17:14Z")

</div>

You’ve got

Maximise:

0.25 x + 0.35 y

Subject to:

0.1 x + 0.8 y \<= 300  
0.2 x + 0.45 y \<= 250  
0.1 x + 0.4 y \<= 260

Or, stated the way you have, you want to graph the lines:

x = 3000 - 8 y  
x = 1,250 - 2.25 y  
x = 2,600 - 4 y

---

<div class="post-metadata">

**Author:** ![dauerbach](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dauerbach](https://boards.straightdope.com/u/dauerbach)\
**Post date:** [May 5, 2003, 10:20am UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/4 "2003-05-05T10:20:04Z")

</div>

_sigh_

I am getting tired. Actually the original problem should have read $160 to spend. And yes, it should have been 45/20y in the second equation.

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [May 5, 2003, 10:33am UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/5 "2003-05-05T10:33:33Z")

</div>

There you go.

x = 800, y = 200.

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [May 5, 2003, 10:36am UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/6 "2003-05-05T10:36:25Z")

</div>

Crap.

x = 200  
y = 350.

---

<div class="post-metadata">

**Author:** ![dauerbach](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dauerbach](https://boards.straightdope.com/u/dauerbach)\
**Post date:** [May 5, 2003, 11:55am UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/7 "2003-05-05T11:55:05Z")

</div>

Hmmm, I tried both answers out and each only fulfills two of the three constraints. Shouldn’t the correct answer fulfill all three of the equations?

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [May 5, 2003, 12:07pm UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/8 "2003-05-05T12:07:35Z")

</div>

No. They’re _inequality_ constraints.

Draw the lines. Shade the portion of the plabe above and to the right of each line.

You are left with four possible solutions.

One at the x axis, one at the y axis, and one at each of the two intersection points I identified above.

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [May 5, 2003, 12:08pm UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/9 "2003-05-05T12:08:43Z")

</div>

plabe = plane, obviously.

---

<div class="post-metadata">

**Author:** ![dauerbach](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dauerbach](https://boards.straightdope.com/u/dauerbach)\
**Post date:** [May 5, 2003, 7:10pm UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/10 "2003-05-05T19:10:27Z")

</div>

Ok, thanks alot. I really used to understand this stuff. Anyway, your first answer was the right one, x=800 y=200. The income is maximized for .35x + .75y. Now I am off to [mathforum.org](http://mathforum.org) to try to understand the whole thing better. I do appreciate your help.

---

<div class="post-metadata">

**Author:** ![El\_Smasho](https://avatars.discourse-cdn.com/v4/letter/e/f9ae1b/32.png) [@El\_Smasho](https://boards.straightdope.com/u/El_Smasho)\
**Post date:** [May 5, 2003, 7:33pm UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/11 "2003-05-05T19:33:24Z")

</div>

You should buy a 200 pocket scientific PDA. Then you could be confused scientifically.

---

<div class="post-metadata">

**Author:** ![dauerbach](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dauerbach](https://boards.straightdope.com/u/dauerbach)\
**Post date:** [May 5, 2003, 7:56pm UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/12 "2003-05-05T19:56:49Z")

</div>

Actually, NOW it seems that correct answer is:

x=1,250  
y=0

No caramel popcorn at all maximizes profits. Only have 165 to spend.

---

<div class="post-metadata">

**Author:** ![dauerbach](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dauerbach](https://boards.straightdope.com/u/dauerbach)\
**Post date:** [May 5, 2003, 8:25pm UTC](https://boards.straightdope.com/t/math-is-not-fun/173149/13 "2003-05-05T20:25:21Z")

</div>

I keep giving out misinformatiion. I only have 160 to spend, not 165. Sorry. Perhaps if I was not so sloppy I would figure these things out myself.
