General Aptitude

Alligation and mixture

Part 1 of 2 · 15 min

Weighted average and the alligation cross

The concept

Start with something familiar

A tea shop sells two kinds of tea leaves: an ordinary one at ₹200 a kg and a premium one at ₹300 a kg. The owner mixes them to make a house blend.
If he mixes equal amounts, the blend is worth ₹250 a kg, exactly halfway. But if he uses 3 kg of the ordinary tea for every 1 kg of premium, the blend is mostly ordinary tea, so its price should sit closer to ₹200. It does: it works out to ₹225.
That is the whole lesson in one picture. A mixture's value always lies between the values of what went in, and it leans towards whichever part there is more of.

Idea 1: a mixture's value is a weighted average

To price the blend, find the total cost and divide by the total quantity. Each price counts as many times as there are kilograms of it, which is why it's called a weighted average: the quantities are the weights.
TeaKgPriceCost
Ordinary3₹200₹600
Premium1₹300₹300
Blend4?₹900
So the blend costs 9004=₹225\dfrac{900}{4} = ₹225 a kg. In symbols, with quantities w1,w2w_1, w_2 at values a,ba, b:
Key idea
Mean value m=w1a+w2bw1+w2m = \dfrac{w_1 a + w_2 b}{w_1 + w_2}: total value divided by total quantity.
Example
Mix 2 kg of sugar at ₹40 with 3 kg at ₹50. What is the mixture worth per kg?
Total cost =2×40+3×50=80+150=₹230= 2 \times 40 + 3 \times 50 = 80 + 150 = ₹230 for 5 kg, so m=2305=₹46m = \dfrac{230}{5} = ₹46 a kg.

Idea 2: the mean sits closer to the bigger part, in exact inverse proportion

Look at the tea blend again. The mean ₹225 is 25 away from the ordinary tea and 75 away from the premium tea.
OrdinaryPremium
Price₹200₹300
Distance from ₹2252575
Kg used31
The distances are 25:75=1:325 : 75 = 1 : 3, and the quantities are 3:13 : 1. They are the same ratio, flipped.
Why? Think of a see-saw. A heavy child sits close to the middle and a light child sits far out, and they balance. Here the mean is the pivot. The cheap tea brings the blend's price down by 25 for each of its 3 kg (a total "pull" of 75), and the premium tea pushes it up by 75 for its 1 kg (also 75). The pulls cancel, which is exactly what "average" means.
Key idea
The quantities are in the inverse ratio of their distances from the mean: w1w2=b−mm−a\dfrac{w_1}{w_2} = \dfrac{b - m}{m - a}.
Example
Two kinds of rice cost ₹40 and ₹60 a kg. The mixture is worth ₹55. Which kind is there more of, and in what ratio?
₹55 is 15 from ₹40 and 5 from ₹60, so it's nearer the ₹60 rice. Cheap : dear =5:15=1:3= 5 : 15 = 1 : 3.

Idea 3: the alligation cross finds the ratio in one line

Idea 2 gives a quick routine called alligation. Write the cheap value, the dear value and the mean. Find each distance from the mean, then swap them: each ingredient's weight is the distance of the other one.
CheapDear
Valueaabb
Distance from mmm−am - ab−mb - m
Quantity (swapped)b−mb - mm−am - a
Textbooks draw this as a cross: aa and bb on top, mm in the middle, and the differences written diagonally below. The swap is the cross.
Key idea
Cheap : dear =(b−m):(m−a)= (b - m) : (m - a), where aa is the cheap value, bb the dear value and mm the mean.
Example
Rice at ₹40 a kg and ₹60 a kg is mixed to get rice worth ₹46 a kg. In what ratio?
Cheap : dear =(60−46):(46−40)=14:6=7:3= (60 - 46) : (46 - 40) = 14 : 6 = 7 : 3. Check: 7×40+3×6010=46010=₹46\dfrac{7 \times 40 + 3 \times 60}{10} = \dfrac{460}{10} = ₹46.
Picture it
₹40₹60₹46614cheap : dear = 14 : 6 = 7 : 3

₹46 is 6 from ₹40 and 14 from ₹60. The amounts go the other way round: cheap : dear = 14 : 6 = 7 : 3, more of the rice it sits nearer.

Idea 4: alligation works for any average, not just prices

Nothing in Idea 2 was really about money. It works for anything that is an average per unit of the weight:
ValueWeight
price per kgkg
% of milk, acid, goldlitres or grams
class average marksnumber of students
speed (km/h)time spent
Two special values make many questions easy. Water is ₹0 a litre and 0% milk. Pure milk is 100% milk.
Example
Milk costs ₹30 a litre. In what ratio should water be added so the mixture is worth ₹25 a litre?
Water is ₹0. Milk : water =(25−0):(30−25)=25:5=5:1= (25 - 0) : (30 - 25) = 25 : 5 = 5 : 1.

How to spot which idea you need

The question says...Use
"find the price / % / average of the mixture"Idea 1: weighted average
"which is there more of", "closer to"Idea 2: inverse distances
"in what ratio must ... be mixed"Idea 3: the alligation cross
water, pure milk, speeds, class averagesIdea 4: pick the right value and weight
"sold at ... with a profit of x%"find the cost price of the mixture first, then Idea 3

Worked example 1warm-up

How many kg of rice at ₹42 a kg must be mixed with 25 kg of rice at ₹54 a kg so that the mixture is worth ₹46 a kg?
Solution
Step 1. Set up the crossIdea 3
Cheap a=42a = 42, dear b=54b = 54, mean m=46m = 46.
Step 2. Swap the distancesIdea 3
Cheap : dear =(54−46):(46−42)=8:4=2:1= (54 - 46) : (46 - 42) = 8 : 4 = 2 : 1.
Step 3. Use the known quantity
The dear rice is 1 part =25= 25 kg, so the cheap rice is 2 parts =50= 50 kg.
Step 4. CheckIdea 1
50×42+25×5475=2100+135075=345075=₹46\dfrac{50 \times 42 + 25 \times 54}{75} = \dfrac{2100 + 1350}{75} = \dfrac{3450}{75} = ₹46.

Worked example 2GATE level

A grocer mixes tea costing ₹180 a kg with tea costing ₹240 a kg. He sells the mixture at ₹220 a kg and makes a profit of 10%. In what ratio did he mix them?
Solution
Step 1. Find what the mixture cost himIdea 1: the mean is a cost
Selling price =1.1×= 1.1 \times cost price, so the cost price is 2201.1=₹200\dfrac{220}{1.1} = ₹200 a kg. This is the mean, not ₹220.
Step 2. Alligate on costIdea 3
Cheap : dear =(240−200):(200−180)=40:20=2:1= (240 - 200) : (200 - 180) = 40 : 20 = 2 : 1.
Step 3. Check
2 kg at ₹180 and 1 kg at ₹240 cost ₹600 for 3 kg, which is ₹200 a kg. Selling at ₹220 gives 20200=10%\dfrac{20}{200} = 10\% profit.

Worked example 3GATE level

A milkman buys milk at ₹40 a litre, adds water, and sells the mixture at ₹40 a litre. He gains 25%. What fraction of the mixture is water?
Solution
Step 1. Find the cost price of one litre of mixtureIdea 1
401.25=₹32\dfrac{40}{1.25} = ₹32 a litre.
Step 2. Treat water as ₹0Ideas 3 and 4
Milk : water =(32−0):(40−32)=32:8=4:1= (32 - 0) : (40 - 32) = 32 : 8 = 4 : 1.
Step 3. Answer
Water is 1 part out of 5, so 15\dfrac{1}{5} of the mixture.
Step 4. Check
4 L of milk cost ₹160. With 1 L of water he sells 5 L for ₹200. Gain =40160=25%= \dfrac{40}{160} = 25\%.

All the equations at a glance

IdeaEquation
Weighted averagem=w1a+w2bw1+w2m = \dfrac{w_1 a + w_2 b}{w_1 + w_2}
Inverse distancesw1w2=b−mm−a\dfrac{w_1}{w_2} = \dfrac{b - m}{m - a}
Alligation crosscheap : dear =(b−m):(m−a)= (b - m) : (m - a)
Any averagewater =₹0= ₹0 or 0%0\%, pure =100%= 100\%, speed weighted by time
With profitmean =selling price1+profit= \dfrac{\text{selling price}}{1 + \text{profit}}
Alligation and mixture | General Aptitude for GATE | Success Tracker