# Word Problem of the Day!

**URL:** <https://boards.straightdope.com/t/word-problem-of-the-day/617693>\
**Category:** Factual Questions\
**Created:** [April 3, 2012, 3:07pm UTC](https://boards.straightdope.com/t/word-problem-of-the-day/617693 "2012-04-03T15:07:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sicks\_Ate](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Sicks\_Ate](https://boards.straightdope.com/u/Sicks_Ate)\
**Post date:** [April 3, 2012, 3:07pm UTC](https://boards.straightdope.com/t/word-problem-of-the-day/617693/1 "2012-04-03T15:07:15Z")

</div>

Very easy question for anyone who isn’t me:

I live about half-way on a line between JobA and JobB. Let’s say it’s 12 miles to JobA and 8 miles to JobB.

I go to JobA 5 days a week. I go to JobB an average of 3 days a week.

If my goal is to drive the fewest possible miles, would it be better to move closer to JobA, or to stay put? Or should I move to be right at JobA? Is there a point somewhere in between that is optimal?

---

<div class="post-metadata">

**Author:** ![One\_And\_Only\_Wanderers](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@One\_And\_Only\_Wanderers](https://boards.straightdope.com/u/One_And_Only_Wanderers)\
**Post date:** [April 3, 2012, 3:13pm UTC](https://boards.straightdope.com/t/word-problem-of-the-day/617693/2 "2012-04-03T15:13:36Z")

</div>

Live at JobA every mile closer to job A saves you 10 miles a week and only costs you 6 miles a week

ie if you live at Job a thats total mileage of 5 \* 0 \* 2 (cos it’s each way) + 3 \* 20 \* 2 = 120  
0 120

now move a mile away from job A total = 5_1_2 + 3_19_2 = 124  
10 114

every mile closer to B will increase total mileage by 4

---

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [April 3, 2012, 3:15pm UTC](https://boards.straightdope.com/t/word-problem-of-the-day/617693/3 "2012-04-03T15:15:44Z")

</div>

Call the distance from your house to A: a  
Call the distance from your house to B: b

Your total driving will be 10a + 6b. We also know that a + b = 20. This means your total driving can be put in one variable.  
10a + 6 (20 - a)  
10a + 120 - 6a  
4a + 120  
The question is how to minimize that expression. A quadratic would probably give you something in the middle but in this case, given the domain and range needing to be non-negative (because distance is always non-negative), the minimum is when a=0.

So to minimize your driving, you need to live in your cubicle at Job A.

---

<div class="post-metadata">

**Author:** ![Isamu](https://avatars.discourse-cdn.com/v4/letter/i/7c8e57/32.png) [@Isamu](https://boards.straightdope.com/u/Isamu)\
**Post date:** [April 4, 2012, 3:45am UTC](https://boards.straightdope.com/t/word-problem-of-the-day/617693/4 "2012-04-04T03:45:22Z")

</div>

Stop working 8 days a week.
