SOLUTION: Hello: Can you help setup and solve this question: Mary went shopping and bought some pencils $1 each, notebooks $2 each and pens $3 each. If she spent a total of $12, how ma

Algebra.Com
Question 1163188: Hello:
Can you help setup and solve this question:
Mary went shopping and bought some pencils $1 each, notebooks $2 each and pens $3 each. If she spent a total of $12, how many of each item did she purchase?
The answer stated is 4 pencils, 1 notebook and 2 pens. I don't understand how they arrived at that answer.
Thanks in advance.

Found 2 solutions by ikleyn, MathTherapy:
Answer by ikleyn(52781)   (Show Source): You can put this solution on YOUR website!
.

From the condition, we have one equation for total money

    x + 2y + 3z = 12  dollars   (1)

which should be solved in positive integer numbers x (the number of pensils), y (the number of notebooks)  
and z (the number of pens).



    At this point, the setup is just completed.



Under given conditions, the problem has several solutions (more than one).

The solution you mention is only one possible of several.


The full list of the solutions is in the Table below


     T  A  B  L  E  


     x     y     z
---------------------------

     1     1     3

     2     2     2
     4     1     2

     1     4     1
     3     3     1
     5     2     1
     7     1     1


So, the given answer is only one possibility,

and actually, 6 other are possible, giving the full number of solution as 7.



    The way to find all these solutions is well organized "trials and errors" method.


    To get the idea of this method, look in the table and see how I go down from the highest possible values of z;
    then see how I go down from the highest possible values of y, at given fixed value of z.


    It is a kind of a "descend method" with the use of lexicographic (~ alphabetic) ordering of unknowns. 

-----------

Solved, explained and completed.



Answer by MathTherapy(10552)   (Show Source): You can put this solution on YOUR website!

Hello:
Can you help setup and solve this question:
Mary went shopping and bought some pencils $1 each, notebooks $2 each and pens $3 each. If she spent a total of $12, how many of each item did she purchase?
The answer stated is 4 pencils, 1 notebook and 2 pens. I don't understand how they arrived at that answer.
Thanks in advance.
That's RIDICULOUS. One of the ways that that could be the CORRECT and ONLY answer is if the total number of pencils purchased was TWICE the number of pens purchased.
Otherwise, there are 7 possible combinations. You'll see these below.
.
RELATED QUESTIONS

How do you solve this algebraic word problem graphically? Student 1 and Student 2 went (answered by stanbon)
Lex spent $8.40 for several pencils costing 20 cents each and some notebooks costing... (answered by solver91311)
Hello, thanks for spending time to help. Here is the question: Jack bought some... (answered by rothauserc)
Judy bought P pencils at 14 cents each and n notebooks at 1.25$ each. Write an equation... (answered by stanbon)
At a local store, Kelly and Martin bought some notebooks and pencils. Kelly bought 4... (answered by ankor@dixie-net.com)
A shop sold pens for 0.70 each and rulers for 0.50 each. Mary bought some pens and... (answered by josgarithmetic)
Each notebook in a store costs $7, and each pack of pencils costs $2. If you want to... (answered by ikleyn)
Okay I have a problem I don't understand this problem...... Ben bought 8 notbooks for... (answered by rfer)
A bookshop sold plain notebooks at 55ยข each and glossy notebooks at $1.20 each. Michael... (answered by josgarithmetic,greenestamps,MathTherapy)