# Figuring out this riddle using algebra

**URL:** <https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811>\
**Category:** Factual Questions\
**Created:** [December 20, 2004, 4:29pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811 "2004-12-20T16:29:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![x-ray\_vision](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/x-ray_vision/32/351_2.png) [@x-ray\_vision](https://boards.straightdope.com/u/x-ray_vision)\
**Post date:** [December 20, 2004, 4:29pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/1 "2004-12-20T16:29:34Z")

</div>

I’ve known this riddle for years and I can figure out similar riddles in my head using trial and error, but how do I figure this out using an algebreic formula?

You bought two pencils in a stationery store, an expensve pencil and a cheap pencil. The expensive pencil costs a dollar more than the cheap pencil. All together, you spent $1.10. How much was the cheap pencil?

---

<div class="post-metadata">

**Author:** ![silverfish](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@silverfish](https://boards.straightdope.com/u/silverfish)\
**Post date:** [December 20, 2004, 4:38pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/2 "2004-12-20T16:38:38Z")

</div>

Let x be the price of the cheaper pencil, and y the price of the more expensive pencil.

Then the more expensive pencil is a dollar more expensive than the cheap one, so y = x+ 1. Also, the total price is $1.10, so x+y = 1.1.

Then substitute the first equation into the second to get:  
x+y = 1.1  
x+ (x + 1) = 1.1  
2x = .1  
x = .05

So the cheaper pencil costs $0.05 or 5 cents, and the more expensive pencil is $1.05.

---

<div class="post-metadata">

**Author:** ![John\_Mace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/john_mace/32/185_2.png) [@John\_Mace](https://boards.straightdope.com/u/John_Mace)\
**Post date:** [December 20, 2004, 4:38pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/3 "2004-12-20T16:38:43Z")

</div>

x + y = 1.10 [All together, you spent $1.10.]  
x = y + 1.00 [The expensive pencil costs a dollar more than the cheap pencil.]

substitute the second equation into the first:

y + 1.00 + y = 1.10

2y = .10

y = .05

x = 1.05 (from the first equation)

---

<div class="post-metadata">

**Author:** ![Jurph](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@Jurph](https://boards.straightdope.com/u/Jurph)\
**Post date:** [December 20, 2004, 4:39pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/4 "2004-12-20T16:39:53Z")

</div>

> [@x-ray vision](#):
>
> I’ve known this riddle for years and I can figure out similar riddles in my head using trial and error, but how do I figure this out using an algebreic formula?
> 
> You bought two pencils in a stationery store, an expensve pencil and a cheap pencil. The expensive pencil costs a dollar more than the cheap pencil. All together, you spent $1.10. How much was the cheap pencil?

X + Y = 1.10  
X - Y = 1.00

Since both equations are true, you can “add” them ( **Mathochist** will be along with a proof I’m sure 😉 ) and get

2X + 0Y = 2.10

And therefore X = $1.05 (clearly X is the expensive pencil). Plug that result into either of the first two equations to solve for Y. You can also subtract the equations from each other to solve for Y first.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [December 20, 2004, 5:03pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/5 "2004-12-20T17:03:49Z")

</div>

> [@Jurph](#):
>
> **Mathochist** will be along with a proof I’m sure 😉

I try not to respond to posts which smell too strongly of homework, creative backstories or not.

---

<div class="post-metadata">

**Author:** ![x-ray\_vision](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/x-ray_vision/32/351_2.png) [@x-ray\_vision](https://boards.straightdope.com/u/x-ray_vision)\
**Post date:** [December 20, 2004, 5:22pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/6 "2004-12-20T17:22:58Z")

</div>

Whatever. Maybe you shouldn’t bother posting about any math questions then. What kind of math question can’t smell of homework?

---

<div class="post-metadata">

**Author:** ![Tanach](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@Tanach](https://boards.straightdope.com/u/Tanach)\
**Post date:** [December 20, 2004, 5:25pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/7 "2004-12-20T17:25:06Z")

</div>

Interesting. I saw the problem a little differently than everyone else. When I worked the problem in my head, since we are dealing with two like items (pencils), I treated them both as x:

x + (x+$1) = $1.10  
2x = $1.10 - 1.00 x = .05

It never ocurred to me to treat one pencil as x and another as y as they are both the same items and can be directly related, thus eliminating the need for simultaneous equations as in \*\*Jurph’s \*\* solution.

/hijack

what is the proper naming convention for variable assignment?

hijack/

---

<div class="post-metadata">

**Author:** ![ITR\_champion](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ITR\_champion](https://boards.straightdope.com/u/ITR_champion)\
**Post date:** [December 20, 2004, 5:46pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/8 "2004-12-20T17:46:28Z")

</div>

There is no proper naming convention for variables any more. One of the early French algebraists had a system of always starting from the back of the alphabet for variables, and from the front of the alphabet for constants. In this crass and shoddy modern world, however, people have stopped holding strictly to those rules, and mathematicians instead simply pick variables that should be easy for the audience to remember.

---

<div class="post-metadata">

**Author:** ![chrisk](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@chrisk](https://boards.straightdope.com/u/chrisk)\
**Post date:** [December 20, 2004, 5:47pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/9 "2004-12-20T17:47:02Z")

</div>

> [@Tanach](#):
>
> Interesting. I saw the problem a little differently than everyone else. When I worked the problem in my head, since we are dealing with two like items (pencils), I treated them both as x:
> 
> x + (x+$1) = $1.10  
> 2x = $1.10 - 1.00 x = .05
> 
> It never ocurred to me to treat one pencil as x and another as y as they are both the same items and can be directly related, thus eliminating the need for simultaneous equations as in \*\*Jurph’s \*\* solution.
> 
> /hijack
> 
> what is the proper naming convention for variable assignment?
> 
> hijack/

Actually, you’re not treating them both as x, you can’t do that because they aren’t the same price. You’re just never formally declaring y but ‘inlining’ the expansion of the more expensive pencil as x + $1 In a sense, you’re doing the same work as solving the simultaneous equations, you just don’t notice it because the second equation (y = x + $1) is so simple you can substitute it into the other equation directly (and because the second equation is pretty simple too.)

Not sure there are any formal naming conventions for algebra word problems. Standard practice is to assign all important unknown quantities on the series x, y, z, w, v, u as they occur to you. If you realize you need more than six unknowns, it’s generally common to group them and use numbers to differentiate them… x1, x2, x3 and so on.

Did that make any sense??

---

<div class="post-metadata">

**Author:** ![CurtC](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CurtC](https://boards.straightdope.com/u/CurtC)\
**Post date:** [December 20, 2004, 5:49pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/10 "2004-12-20T17:49:52Z")

</div>

> [@Tanach](#):
>
> Interesting. I saw the problem a little differently than everyone else. When I worked the problem in my head, since we are dealing with two like items (pencils), I treated them both as x:
> 
> x + (x+$1) = $1.10

But you just did the first step, substitution, in your head - it was the same exact technique.

---

<div class="post-metadata">

**Author:** ![vetbridge](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vetbridge](https://boards.straightdope.com/u/vetbridge)\
**Post date:** [December 20, 2004, 6:24pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/11 "2004-12-20T18:24:16Z")

</div>

> [@x-ray vision](#):
>
> You bought two pencils in a stationery store, an expensve pencil and a cheap pencil. The expensive pencil costs a dollar more than the cheap pencil. All together, you spent $1.10. How much was the cheap pencil?

You are really getting reamed by your office supply store. Ticonderoga #2 pencils go for $11.49 for 72 pencils!

Cite: [http://www.staples.com/Catalog/Browse/Sku.asp?PageType=1&Sku=138180](http://www.staples.com/Catalog/Browse/Sku.asp?PageType=1&Sku=138180)

> [@](#):
>
> World class wood quality!
> 
> ```
> * Real wood means a sturdy pencil and easy sharpening
> * Smooth writing lead lubricates surfaces as you write
> * Yellow, hexagon-shaped barrel with top-quality pink eraser
> * Certified non-toxic
> 
> ```

---

<div class="post-metadata">

**Author:** ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)\
**Post date:** [December 20, 2004, 6:30pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/12 "2004-12-20T18:30:05Z")

</div>

> [@vetbridge](#):
>
> You are really getting reamed by your office supply store. Ticonderoga #2 pencils go for $11.49 for 72 pencils!

Only if he buys the expensive pencils. That’s still more than three times the price of the cheap ones. 😛

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [December 20, 2004, 7:19pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/13 "2004-12-20T19:19:16Z")

</div>

> [@x-ray vision](#):
>
> Whatever. Maybe you shouldn’t bother posting about any math questions then. What kind of math question can’t smell of homework?

Sorry, I forgot that to most people math is only good as a source of pointless exercises and “riddles” poseable as homework problems.

This is such a standard example of algebra that I have great difficulty believing that you can figure out “similar examples” in your head and have trouble with this one.

---

<div class="post-metadata">

**Author:** ![Left\_Hand\_of\_Dorkness](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/left_hand_of_dorkness/32/7156_2.png) [@Left\_Hand\_of\_Dorkness](https://boards.straightdope.com/u/Left_Hand_of_Dorkness)\
**Post date:** [December 20, 2004, 7:25pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/14 "2004-12-20T19:25:00Z")

</div>

I did it similarly to **Tanach**. Basically, I thought, “well, the price of this pencil, plus (the price of this pencil plus a dollar), equals a buck ten.” I know that’s functionally equivalent to what the other solutions said, but it stayed a word problem in my head a little longer than for other folks :).

Daniel

---

<div class="post-metadata">

**Author:** ![vetbridge](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vetbridge](https://boards.straightdope.com/u/vetbridge)\
**Post date:** [December 20, 2004, 7:40pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/15 "2004-12-20T19:40:48Z")

</div>

> [@Q.E.D.](#):
>
> Only if he buys the expensive pencils. That’s still more than three times the price of the cheap ones. 😛

Touche!

That’s what I get for failing to show my work;)

Happy Holidays:)

---

<div class="post-metadata">

**Author:** ![x-ray\_vision](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/x-ray_vision/32/351_2.png) [@x-ray\_vision](https://boards.straightdope.com/u/x-ray_vision)\
**Post date:** [December 20, 2004, 9:15pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/16 "2004-12-20T21:15:32Z")

</div>

> [@](#):
>
> Originally posted by Mathochist

This is such a standard example of algebra that I have great difficulty believing that you can figure out “similar examples” in your head and have trouble with this one.  
[/quote]

Like I said, I use trial and error. I did it something like this:

Okay, the obvious answer is 10 cents. A dollar more than 10 cents is $1.10, $1.10 plus 10 cents is $1.20 - nope, that can’t be right, 10 cents is too much. Lets cut it in half and try 5 cents. 5 cents plus a dollar more ($1.05) is $1.10, yup, I got it.

This is the way I’ve always solved these sort of problems and I’m embarresed to say, it still seems easier to me than the above formulas. I know if the problem is more difficult, I would definitely need a formula. That’s why I asked. FWIW, I’ve been a member in good standing here for over two years and I wouldn’t use these boards to cheat on homework (and I haven’t been in school for years).

I don’t think I’ll be able to do other problems like this the way **silverfish** and **John Mace** solved it, but the way **Jurph** and **Tenach** explained it makes sense to me. Thanks everyone.

---

<div class="post-metadata">

**Author:** ![vd](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vd](https://boards.straightdope.com/u/vd)\
**Post date:** [December 20, 2004, 10:28pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/17 "2004-12-20T22:28:17Z")

</div>

> [@vetbridge](#):
>
> You are really getting reamed by your office supply store. Ticonderoga #2 pencils go for $11.49 for 72 pencils!
> 
> Cite: [http://www.staples.com/Catalog/Browse/Sku.asp?PageType=1&Sku=138180](http://www.staples.com/Catalog/Browse/Sku.asp?PageType=1&Sku=138180)

But it’s not really out of line for high-end drafting/drawing pencils at $10.77 a dozen.

> **[Office Supplies, Technology, Ink & Much More | Staples®](https://www.staples.com)**

---

<div class="post-metadata">

**Author:** ![spingears](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@spingears](https://boards.straightdope.com/u/spingears)\
**Post date:** [December 21, 2004, 12:29am UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/18 "2004-12-21T00:29:08Z")

</div>

> [@x-ray vision](#):
>
> I’ve known this riddle for years and I can figure out similar riddles in my head using trial and error, but how do I figure this out using an algebreic formula?

Your roentgen tube has gone bad.

_It is **not a riddle** _. _It is a **word problem** _ in mathematics!

---

<div class="post-metadata">

**Author:** ![John\_Mace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/john_mace/32/185_2.png) [@John\_Mace](https://boards.straightdope.com/u/John_Mace)\
**Post date:** [December 21, 2004, 1:17am UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/19 "2004-12-21T01:17:24Z")

</div>

> [@x-ray vision](#):
>
> I don’t think I’ll be able to do other problems like this the way **silverfish** and **John Mace** solved it, but the way **Jurph** and **Tenach** explained it makes sense to me. Thanks everyone.

As some have already noted, these are really all the same (or very nearly so) way of solving the problem. The standard technique to solve these problems is to simply assign variables (x, y, etc.) to the unknowns and then translate the wording into equations (I tried to highlight that by putting the exact wording next to the equations). Then you solve for one of the variables (in terms of the other) in one equation and substitute it into the other equation. At that point you only have one variable-- you solve for it, then substute the answer into the other equation and solve for the other variable.

Once you do a few that way it’s a piece of cake.

---

<div class="post-metadata">

**Author:** ![Left\_Hand\_of\_Dorkness](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/left_hand_of_dorkness/32/7156_2.png) [@Left\_Hand\_of\_Dorkness](https://boards.straightdope.com/u/Left_Hand_of_Dorkness)\
**Post date:** [December 21, 2004, 2:42pm UTC](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811/20 "2004-12-21T14:42:39Z")

</div>

> [@John Mace](#):
>
> As some have already noted, these are really all the same (or very nearly so) way of solving the problem. The standard technique to solve these problems is to simply assign variables (x, y, etc.) to the unknowns and then translate the wording into equations.

True. For myself, I find single-variable algebra to be far, far easier than multiple-variable algebra, and so I’ll always try to get to single-variable before putting it in equation form. But that’s just an idiosyncrasy of my head, I think.

Daniel

[Next page](https://boards.straightdope.com/t/figuring-out-this-riddle-using-algebra/280811.md?page=2)
