SOLUTION: Brian paid $50 for 12 of honeydews, coconut and watermelons. The unit price for honeydew, coconut and watermelon respectively is $2, $5, and $9. Suppose that Brian bought at least

Algebra.Com
Question 41551: Brian paid $50 for 12 of honeydews, coconut and watermelons. The unit price for honeydew, coconut and watermelon respectively is $2, $5, and $9. Suppose that Brian bought at least one fruit for each. How many coconuts did Brian buy?
I set up a system of equations
h + c + w = 12
2h + 5c + 9w = 50
The problem is it keeps cancelling out completely. Where did I mess up or is there a better way?

Answer by AnlytcPhil(1807)   (Show Source): You can put this solution on YOUR website!
Brian paid $50 for 12 of honeydews, coconut and watermelons. 
The unit price for honeydew, coconut and watermelon 
respectively is $2, $5, and $9. Suppose that Brian bought at 
least one fruit for each. How many coconuts did Brian buy?

I set up a system of equations
h + c + w = 12
2h + 5c + 9w = 50 

The problem is it keeps cancelling out completely. Where did 
I mess up or is there a better way?

1. Use the first equation to eliminate the h term in the 
   second equation.
2. Then, use the second equation to eliminate the c term in 
   the first equation.
3. Solve for h and c in terms of w
4. Use the fact that the variables must represent positive 
   numbers to define inequalities to find w's domain.
5. Try all positive integers for w in w's domain.  



================================

1. Use the first equation to eliminate the h term in the 
   second equation.

Add -2 times the first equarion to 1 times the second
equation, but keep the first equation as is:

-2[ h +  c +  w = 12]
 1[2h + 5c + 9w = 50] 
—————————————————————
        3c + 7w = 26

So our system is not

    h +  c +  w = 12
        3c + 7w = 26



2. Then, use the second equation to eliminate the c 
term in the first equation, but keep the second 
equation as is.

    -3[h +  c +  w =  12
     1[    3c + 7w =  26
   —————————————————————
     -3h      + 4w = -10 

So now our system is

     -3h      + 4w = -10
           3c + 7w =  26

3. Solve for h and c in terms of w

Solving the first for h and the second for c

        h = (10+4w)/3

        c  = (26-7w)/3

4. Use the fact that the variables must represent 
   positive numbers to find w's domain.

All the variables are positive, so

        w > 0
(10+4w)/3 > 0, which solves to give w > -10/4
(26-7w)/3 > 0, which solves to give w < 26/7 or 3 5/7

So we have 0 < w < 3 5/7

And since w must be an integer, w can only be 1, 2, or 3

We try w = 1.

        h = (10+4w)/3 = (10+4·1)/3 = 14/3, not an integer

        c = (26-7w)/3 = (26-7·1)/3 = 19/3, not an integer

We try w = 2.

        h = (10+4w)/3 = (10+4·2)/3 = 18/3 = 6, an integer,
        which is feasible.

        c = (26-7w)/3 = (26-7·2)/3 = 12/3 = 4, an integer, 
        which is feasible.

We try w = 3.

        h = (10+4w)/3 = (10+4·3)/3 = 22/3, not an integer

        c = (26-7w)/3 = (26-7·3)/3 = 5/3, not an integer
      
So the only solution is w = 2, h = 6, c = 4.

Edwin
AnlytcPhil@aol.com


RELATED QUESTIONS

A coconut costs the merchant .15 and is marked up 75%. Find the selling price. (answered by fractalier)
Coconut flakes that contain 18% fiber and walnuts which contain 10% fiber are combined to (answered by josgarithmetic)
The height of a coconut tree is 6 m and a distance from a tree to a point in the front of (answered by math_tutor2020)
Watermelon one is 2 kilograms lighter than watermelon two and 5 times lighter than... (answered by josgarithmetic)
Janil baked an equal number of green tea and coconut cookies. After giving away 196... (answered by ikleyn)
Nail baked an equal number of green tea and coconut cookies. After giving away 196 green (answered by ikleyn)
In a fruit cocktail, for every 28 ml of orange juice you need 14 ml of apple juice and 56 (answered by josmiceli)
In a fruit cocktail, for every 25 ml of orange juice you need 15 ml of apple juice and 40 (answered by ikleyn)
In a fruit cocktail, for every 18 ml of orange juice you need 3 ml of apple juice and 54... (answered by josgarithmetic)