SOLUTION: Aling Maria has a candy stall in the market. One candy cost 5 cents each, the second cost 20 cents each and the 3rd cost 30 cents each. In her absence due to personal necessity a

Algebra.Com
Question 1187542: Aling Maria has a candy stall in the market. One candy cost 5 cents each, the second cost 20 cents each and the 3rd cost 30 cents each. In her absence due to personal necessity an honest buyer picked a total of 20 pcs. of candies costing 5 cents, 20 cents and 30 cents in the stall and leave 2 pesos for their exact cost. How many each candy of 5 cents, 20 cents, and 30 cents the honest buyer picked?
Answer by ikleyn(52781)   (Show Source): You can put this solution on YOUR website!
.
Aling Maria has a candy stall in the market.
One candy cost 5 cents each, the second cost 20 cents each and the 3rd cost 30 cents each.
In her absence due to personal necessity an honest buyer picked a total of
20 pcs. of candies costing 5 cents, 20 cents and 30 cents in the stall and leave 2 pesos for their exact cost.
How many each candy of 5 cents, 20 cents, and 30 cents the honest buyer picked?
~~~~~~~~~~~~~~~~

Let x be the number of 5-cent candies; 

    y be the number of 20-cent candies,

and z be the number of 30-cent candies.


As you read the problem, you can write these two equations


     x +   y +   z =  20      (pieces of candies)

    5x + 20y + 30z = 200      (cents, which is 2 pesos)


To simplify, divide all the terms in the second equation by 5.  You will get these two equations


     x +  y +  z = 20         (1)

     x + 4y + 6z = 40         (2)


Now subtract equation (1) from equation (2).  You will get

         3y + 5z = 20.


You should find the solutions to this equation in integer positive numbers, according to the problem's meaning.


Using this additional restrain, you have ONLY ONE unique solution  z = 1,  y = 5  (simply by "trial and error" method 
which is VERY EASY in this case).


Then  from equation (1), you get  x = 20 - 1 - 5 = 14.


ANSWER.  14 5-cent candies;  5 20-cent candies  and  1 30-cent candy.


CHECK.   14*5 + 5*20 + 1*30 = 70 + 100 + 30 = 200 cents = 2 pesos, the total cost.   ! Correct !

Solved.

-----------------

Usually  (and as a rule),  three unknowns require three equations,  in order for the problem had a unique solution.

But this problem demonstrates an exclusive case.

The problem gives only  2  equations for  3  unknowns,  but the additional restrain
that the solution should be in integer positive numbers provides the  UNIQUE  answer (!)

So,  this restrain works as a replacement to third equation (which absents (!) )



RELATED QUESTIONS

Chris bought 12 items for a total cost of $6.00. The 12 items consisted of cookies and... (answered by richwmiller)
if p pieces of candy cost c cents the how much would 20 pieces of candy... (answered by josgarithmetic)
A candy manufacturer decided to decrease the weight of each candy bar, while retaining... (answered by ikleyn,Edwin McCravy)
There are 35 pieces of candy. Suckers cost .15 and candy bars cost .25. The candy cost... (answered by scott8148)
Gary and Cindy went to the candy store where chocolate bars cost 90 cents each and taffy... (answered by checkley77)
If 2/3 of a pound of candy costs 0.64 cents. What is the cost of 1 and a half pounds of... (answered by ewatrrr,stanbon,josmiceli)
the candy cost $5 per pounds. how much does each pound of candy cost? write an equation... (answered by Alan3354)
if the price of candy is .40 cents per pound how much is 1/4 pound of candy... (answered by jim_thompson5910,ewatrrr)
If they bought one peppermint pattie, One lollipop, and One gumdrop, the total 21 cents... (answered by ankor@dixie-net.com)