# Algebra problem help

**URL:** <https://boards.straightdope.com/t/algebra-problem-help/354541>\
**Category:** Factual Questions\
**Created:** [April 28, 2006, 1:17am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541 "2006-04-28T01:17:37Z")\
**Posts on this page:** 20\
**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:** [April 28, 2006, 1:17am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/1 "2006-04-28T01:17:37Z")

</div>

This algebra problem has me stumped:

A plane with 125 seats may be chartered for $250 per person plus a fee of $6 per person for each empty seat. What number of passengers will provide the maximum income.

I have 250x + 6x as my initial equation, but that is not leading anywhere. What am I not thinking of?

---

<div class="post-metadata">

**Author:** ![The\_Hamster\_King](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@The\_Hamster\_King](https://boards.straightdope.com/u/The_Hamster_King)\
**Post date:** [April 28, 2006, 1:20am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/2 "2006-04-28T01:20:51Z")

</div>

> [@dauerbach](#):
>
> This algebra problem has me stumped:
> 
> A plane with 125 seats may be chartered for $250 per person plus a fee of $6 per person for each empty seat. What number of passengers will provide the maximum income.
> 
> I have 250x + 6x as my initial equation, but that is not leading anywhere. What am I not thinking of?

Try 250x + 6\*(125-x).

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [April 28, 2006, 1:22am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/3 "2006-04-28T01:22:34Z")

</div>

Trick question…? Wouldn’t it be 0 passengers (or 1 to be practical), since each empty seat earns $256?

Or does each empty seat earn only $6?

---

<div class="post-metadata">

**Author:** ![nivlac](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nivlac](https://boards.straightdope.com/u/nivlac)\
**Post date:** [April 28, 2006, 1:25am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/4 "2006-04-28T01:25:34Z")

</div>

> [@Reply](#):
>
> Trick question…? Wouldn’t it be 0 passengers (or 1 to be practical), since each empty seat earns $256?
> 
> Or does each empty seat earn only $6?

Obviously the latter. The problem wasn’t stated very well, but that was the intended meaning.

---

<div class="post-metadata">

**Author:** ![The\_Hamster\_King](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@The\_Hamster\_King](https://boards.straightdope.com/u/The_Hamster_King)\
**Post date:** [April 28, 2006, 1:26am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/5 "2006-04-28T01:26:11Z")

</div>

Maybe this is what the problem is looking for? It leads to a more interesting result, but is a very weird way to charge for the empty seats.

250x + 6x\*(125-x)

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [April 28, 2006, 1:26am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/6 "2006-04-28T01:26:45Z")

</div>

(in which case, the maximum income would come from simply filling up all the seats with people at $250 each, no?)

Is there some other condition/limit?

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [April 28, 2006, 1:29am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/7 "2006-04-28T01:29:10Z")

</div>

(Sorry, my second reply was meant to reply to my first reply.)

Anyway, thanks nivlac, but in that case… why would you ever want less than a full load of passengers (125 people)?

---

<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:** [April 28, 2006, 1:30am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/8 "2006-04-28T01:30:51Z")

</div>

I was interpreting the problem to mean that if 123 seats fill then each seat costs $250 + 12 = 262. If 120 seats sell then each passenger pays 250 + 30 = 280.

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [April 28, 2006, 2:00am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/9 "2006-04-28T02:00:04Z")

</div>

> [@Pochacco](#):
>
> Maybe this is what the problem is looking for? It leads to a more interesting result, but is a very weird way to charge for the empty seats.
> 
> 250x + 6x\*(125-x)

hmmm.

= 250x + 750x - 6x[sup]2[/sup]  
= 1000x - 6x[sup]2[/sup]  
= - 6x[sup]2[/sup] + 1000x

Factor and set equal to zero:

0 = x(1000 - 6x)  
x = 0 and x = 166(.666)

(Here comes the half-assed part.)

These are the zeroes of an inverted parabola (where it crosses the y-axis). Thus the max point is halfway between, or at 83.333.

83 passengers: 1000(83) - 6(83)(83) = $41,666

Let’s check either side:

82 passengers: 1000(82) - 6(82)(82) = $41,656  
84 passengers: 1000(84) - 6(84)(84) = $41,664

So 83 is the max (since you can’t have a fractional passenger).

This solution will not earn you any points with an algebra teacher who wants you to show your work (she said from bitter experience).

I’ll welcome any holes that anyone would care to shoot in it. I forget how you’re SUPPOSED to solve these.

---

<div class="post-metadata">

**Author:** ![nivlac](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nivlac](https://boards.straightdope.com/u/nivlac)\
**Post date:** [April 28, 2006, 2:01am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/10 "2006-04-28T02:01:19Z")

</div>

> [@dauerbach](#):
>
> I was interpreting the problem to mean that if 123 seats fill then each seat costs $250 + 12 = 262. If 120 seats sell then each passenger pays 250 + 30 = 280.

The answer is 83 if you want to check your answer. Pochacco had the right expression for the price per ticket, but you need to multiply it with the number of passengers to get a revenue function. Now find its maximum. Hint: It’s a parabola.

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [April 28, 2006, 2:06am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/11 "2006-04-28T02:06:59Z")

</div>

Beat ya.

---

<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:** [April 28, 2006, 2:19am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/12 "2006-04-28T02:19:13Z")

</div>

I got a different answer.

P(n) = (250 + 6n)(125 - n)  
= 31,250 + 725n -6n^2

Maximize with -b/2a = -725/-6 = 60.4 or 60

P(60) = -6(60)^2 +725(60) +31,250  
= 53,150

I think that is right. Am I correct?

---

<div class="post-metadata">

**Author:** ![nivlac](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nivlac](https://boards.straightdope.com/u/nivlac)\
**Post date:** [April 28, 2006, 2:21am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/13 "2006-04-28T02:21:55Z")

</div>

> [@Scarlett67](#):
>
> Beat ya.

Yeah, but my solution is more elegant. 🙂  
(Once you know it’s an upside down parabola, the optimal solution occurs at the vertex. In this case, it’s x = 83.3. The optimal integral solution has to be 83 since it’s the closest integer to 83.3, and you’re dealing with a parabola.)

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [April 28, 2006, 2:29am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/14 "2006-04-28T02:29:02Z")

</div>

> [@dauerbach](#):
>
> I got a different answer.
> 
> P(n) = (250 + 6n)(125 - n)

Nope, your formula’s wrong.

125 - n is the number of empty seats.

You’re charging $250 + $6(number of paying passengers) for each empty seat.

That’s just wrong, son. 🙂

(Should be 250n + 6n(125 - n). You’ve got one extra set of parens.)

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [April 28, 2006, 2:32am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/15 "2006-04-28T02:32:47Z")

</div>

> [@nivlac](#):
>
> Yeah, but my solution is more elegant. 🙂

Touché. 🙂

> [@](#):
>
> (Once you know it’s an upside down parabola, the optimal solution occurs at the vertex. In this case, it’s x = 83.3. The optimal integral solution has to be 83 since it’s the closest integer to 83.3, and you’re dealing with a parabola.)

Yah, that’s what I said! 😃

---

<div class="post-metadata">

**Author:** ![II\_Gyan\_II](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@II\_Gyan\_II](https://boards.straightdope.com/u/II_Gyan_II)\
**Post date:** [April 28, 2006, 2:33am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/16 "2006-04-28T02:33:54Z")

</div>

> [@dauerbach](#):
>
> I think that is right. Am I correct?

No. If n = 60, you get 65 paying seats, which leads to 60_6 + 250 for each of the 65 passengers, which is 610_65 = $39,650.

Scarlett67, the formula’s right if ‘n’ is empty seats, which I think it is.

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [April 28, 2006, 2:47am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/17 "2006-04-28T02:47:22Z")

</div>

> [@II Gyan II](#):
>
> No. If n = 60, you get 65 paying seats, which leads to 60_6 + 250 for each of the 65 passengers, which is 610_65 = $39,650.
> 
> Scarlett67, the formula’s right if ‘n’ is empty seats, which I think it is.

No, that’s still not right.

You get a max cost of $39,650 for 60 passengers.  
I get a max cost of $41,666 for 83 passengers.

$41,666 \> $39,650.

Look again at the correct formula and what it represents.

$250 per passenger = 250n

PLUS

$6 per passenger per empty seat = 6(n)(125 - n)

EQUALS

250n + 6n(125 - n)

Note that the 250n is not grouped with the 6n, as **dauerbach** had it. The number of empty seats (125 - n) is multiplied by the $6/passenger (6n) only. That’s completely separate from the base price of $250 per passenger, which is why they’re added, not multiplied.

* * *

Boy, I REALLY want to procrastinate tonight. 😛

---

<div class="post-metadata">

**Author:** ![II\_Gyan\_II](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@II\_Gyan\_II](https://boards.straightdope.com/u/II_Gyan_II)\
**Post date:** [April 28, 2006, 3:01am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/18 "2006-04-28T03:01:10Z")

</div>

> [@Scarlett67](#):
>
> No, that’s still not right.

The formula’s right. dauerbach’s maximization isn’t.

Cost per seat = $250 base + $6 per empty seat.

Let number of empty seats be ‘n’.

Therefore, number of occupied seats = ‘125 - n’

Total price = Price for each seat x no. of occupied seats  
= ($250 + $6 x n) x (125 - n)

---

<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:** [April 28, 2006, 3:14am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/19 "2006-04-28T03:14:40Z")

</div>

Ok, I see where my error was. And Scarlett67, as far as my teacher is concerned showing the work is maximizing with -b/2a which comes to 83.3 and then substituting in p(83) = -6(83)^2 + 1000(83) which just happens to give the exact same answer as you got. Thank you very much for the help. Best of all, I actually understand it now.

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [April 28, 2006, 3:31am UTC](https://boards.straightdope.com/t/algebra-problem-help/354541/20 "2006-04-28T03:31:20Z")

</div>

Aargh, OK, I see.

Part of the problem is **dauerbach** ’s choice of what n represents. Normally you would choose n to be the value asked for in the problem (passengers) but he’s chosen it to represent the number of empty seats. Teacher might ding for that.

\<scribble scribble\>

OK, **dauerbach,** check your expansion of that polynomial again:

> [@dauerbach](#):
>
> P(n) = (250 + 6n)(125 - n)  
> = 31,250 + **725n** -6n^2

Your outside and inside terms are (-250n) + (125)(6n) = -250n + 750n = **500n.**

So -b/2a = -500/-12 = 41.666 = 42 empty seats.

Or 83 occupied ones. 🙂

* * *

Thanks for the mental gymnastics session! 😃

[Next page](https://boards.straightdope.com/t/algebra-problem-help/354541.md?page=2)
