Sub topic 4
Ratios after adding, removing or transferring a quantity
This chapter covers CAT questions where two quantities start in a known ratio, something is added, removed or moved between them, and the ratio changes. It assumes you can simplify ratios, build equivalent ratios, chain a:b and b:c into a:b:c, and solve linear equations in one or two variables.
The core idea: find what stays fixed
Every ratio-change problem is easier once you ask which quantity does not change. The ratio itself changes, so it cannot be your anchor. The anchor is usually one of these:
- The difference between two quantities, when the same amount is added to both or removed from both.
- The total, when something is transferred from one part to the other.
- One single quantity, when only the other quantity is changed.
Once you pick the anchor, write each ratio in terms of it. This makes both ratios use the same number for the fixed quantity, as in the chaining method from the previous chapter.
| What happens | What stays fixed | Typical move |
|---|---|---|
| Add or remove from one quantity only | The other quantity | Scale both ratios so the fixed quantity matches |
| Add or remove the same amount from both | The difference | Match the difference in both ratios |
| Transfer from A to B | The total A + B | Match the total in both ratios |
| Both quantities grow by the same factor | The ratio itself | No change, so nothing to solve |
Case 1: one quantity changes, the other is fixed
Suppose a:b = 3:5. After adding 12 to a, the ratio becomes 3:2 with b. Take a concrete problem.
A club has boys and girls in the ratio 3:5. After 12 more boys join, the ratio of boys to girls is 3:4. How many girls are there?
The number of girls is fixed. In the first ratio girls are 5 parts, and in the second they are 4 parts. Make the girls' share equal by taking the LCM of 5 and 4, which is 20.
- First ratio 3:5 scaled by 4 gives 12:20.
- Second ratio 3:4 scaled by 5 gives 15:20.
Girls stay at 20 units. Boys rise from 12 units to 15 units, so 3 units equal 12 boys. One unit is 4, so girls = 20 × 4 = 80.
Check: the original boys are 12 × 4 = 48, and 48:80 = 3:5. After adding 12, boys are 60, and 60:80 = 3:4.
The same approach in code, so you can reuse it:
from math import lcm
from fractions import Fraction
def solve_one_changes(old, new, added):
"""
old = (x1, y1): ratio x:y before the change.
new = (x2, y2): ratio x:y after x increases by `added`.
y is fixed. Returns (x_before, y).
"""
x1, y1 = old
x2, y2 = new
common_y = lcm(y1, y2)
x_before_units = x1 * (common_y // y1)
x_after_units = x2 * (common_y // y2)
rise = x_after_units - x_before_units
if rise == 0:
raise ValueError("the ratio did not change, so the amount cannot be found")
unit = Fraction(added, rise)
return x_before_units * unit, common_y * unit
boys, girls = solve_one_changes((3, 5), (3, 4), 12)
print(boys, girls) # 48 80Case 2: the same amount is added to or removed from both
When you add or subtract the same number from both quantities, their difference does not change. Take a:b = 7:5 as the starting ratio. After adding 10 to both, the ratio becomes 9:7. Find a and b.
- The difference is 7 − 5 = 2 parts in the first ratio and 9 − 7 = 2 parts in the second. Here the two differences are already equal, so one part has the same size in both ratios.
- In the second ratio, b is 7 parts and in the first it is 5 parts. So b gained 2 parts, and that gain is 10. One part is 5.
- Then a = 7 × 5 = 35 and b = 5 × 5 = 25.
Check: 35:25 = 7:5, and 45:35 = 9:7.
When the two differences are not equal, scale the ratios until they are. Suppose a:b = 5:3 becomes 7:5 after adding some number x to each. The first difference is 2 and the second is 2, so again no scaling is needed. Now suppose a:b = 5:3 becomes 4:3 after something is removed from both. The differences are 2 and 1. Scale the second ratio by 2 to get 8:6, so the difference is 2 in both. Then b goes from 3 units to 6 units, which means b increased. A removal cannot increase b, so a problem with these numbers is inconsistent. This check is a useful sanity test: if the quantities should fall, each unit count must fall too.
Case 3: a transfer keeps the total fixed
In a transfer, A loses an amount and B gains the same amount. The total A + B does not change, so match the total in both ratios.
Two containers hold milk in the ratio 7:5. After 6 litres move from the first to the second, the ratio is 5:4. Find the original amounts.
- The total in the first ratio is 7 + 5 = 12 parts. In the second it is 5 + 4 = 9 parts.
- The LCM of 12 and 9 is 36. Scale the first ratio by 3 to get 21:15, and the second by 4 to get 20:16. The total is 36 units in both.
- The first container fell from 21 units to 20 units, so 1 unit equals 6 litres.
- The original amounts are 21 × 6 = 126 litres and 15 × 6 = 90 litres.
Check: 126:90 = 7:5, and after the transfer 120:96 = 5:4.
from math import lcm
def solve_transfer(old, new, moved):
"""
old = (a1, b1): ratio before. new = (a2, b2): ratio after
`moved` units go from the first quantity to the second.
Returns the original (first, second).
"""
a1, b1 = old
a2, b2 = new
t1, t2 = a1 + b1, a2 + b2
total = lcm(t1, t2)
first_before = a1 * (total // t1)
first_after = a2 * (total // t2)
fall = first_before - first_after
if fall == 0:
raise ValueError("the ratio did not change, so the amount cannot be found")
unit = moved / fall
return first_before * unit, (total - first_before) * unit
print(solve_transfer((7, 5), (5, 4), 6)) # (126.0, 90.0)The function raises an error when the unit counts do not change, because then the transferred amount is zero and the problem has no unique answer. A negative unit signals that the direction of the transfer was set wrongly.
Case 4: the unknown is a hidden multiplier
Sometimes a problem gives the ratio and the amount added, but not the new ratio. It asks for the new ratio instead. Here you find the unit first and then apply the change.
Salaries of two people are in the ratio 4:7. If each gets a raise of 2,000, the ratio becomes 5:8. Find the original salaries.
Differences: 7 − 4 = 3 parts before and 8 − 5 = 3 parts after, so one part has the same size. The first person's share went from 4 parts to 5 parts, so 1 part is 2,000. The salaries were 8,000 and 14,000.
Check: 10,000:16,000 = 5:8.
Be careful when the problem uses percentages. A 25% increase to one quantity multiplies it by 5/4, so it is the multiplier that goes into the ratio, not the 25.
Case 5: both quantities change by different factors
If one quantity grows by 20% and the other falls by 10%, the new ratio is the old ratio multiplied term by term by 6/5 and 9/10. Starting at 5:6, you get (5 × 6/5):(6 × 9/10) = 6:5.4 = 10:9.
from fractions import Fraction
def new_ratio(old, factor_a, factor_b):
a, b = old
ra = Fraction(a) * factor_a
rb = Fraction(b) * factor_b
g = Fraction(ra) / rb
return g.numerator, g.denominator
print(new_ratio((5, 6), Fraction(6, 5), Fraction(9, 10))) # (10, 9)Here the ratio changes even though nothing is added, because the factors differ. If the factors were equal, the ratio would stay the same.
Common errors
- Matching the wrong quantity. If a transfer happens and you match one part rather than the total, the units will not line up and the unit value will come out wrong.
- Using parts as amounts. Units are not litres or rupees until you multiply by the unit value. Do not add a given amount to a unit count.
- Forgetting direction. A transfer from A to B lowers A's units and raises B's. Check that your before and after units move in the correct direction.
- Reducing too early. A ratio like 6:9 reduces to 2:3, but if a problem states that the actual amounts are multiples of some known number, reducing hides that information. Keep the unreduced form until the end.
- Treating the new ratio as fixed. After the change, the old ratio no longer applies. Do not use it to find the new amounts.
Quick checks
Always substitute your answers back into both ratios. Two additional checks are cheap:
- The answers must be consistent with the required divisibility. If the total must be a multiple of 9 and your answer is not, one step is wrong.
- The size of the change must match the story. A problem that adds 12 to a group of about 50 cannot reasonably turn a 3:5 ratio into 1:1.
Exercise
Two tanks hold water in the ratio 5:3. When 20 litres are moved from the first tank to the second, the ratio becomes 3:5. How much water was in each tank at the start?
Show answer
The total is 8 parts before and 8 parts after, so it already matches and no scaling is needed. The first tank falls from 5 parts to 3 parts, so 2 parts equal 20 litres and 1 part is 10 litres. The tanks held 50 litres and 30 litres. Check: after the transfer they hold 30 and 50 litres, which is 3:5.
Exercise
The ratio of two numbers is 4:9. When 6 is subtracted from each, the ratio becomes 1:4. Find the two numbers.
Show answer
The differences are 9 − 4 = 5 parts before and 4 − 1 = 3 parts after. The LCM of 5 and 3 is 15, so scale 4:9 by 3 to get 12:27 and 1:4 by 5 to get 5:20. The first number goes from 12 units to 5 units, and the second from 27 to 20. Each fell by 7 units, and each fell by 6, so 7 units = 6. This gives a unit of 6/7 and numbers 72/7 and 162/7, which are not whole numbers. The numbers do not have to be whole here, and the check works: (72/7 − 6):(162/7 − 6) = (30/7):(120/7) = 1:4.
Exercise
In a school the ratio of boys to girls is 7:6. After 15 new girls join and 5 boys leave, the ratio becomes 6:7. How many students were there originally?
Show answer
Let the original numbers be 7k and 6k. After the change the numbers are 7k − 5 and 6k + 15, and (7k − 5):(6k + 15) = 6:7. Cross-multiplying gives 7(7k − 5) = 6(6k + 15), so 49k − 35 = 36k + 90 and 13k = 125, so k = 125/13. That is not a whole number, so as stated the problem has no whole-number answer. Change the new ratio to 5:6 for a clean version, and you get 6(7k − 5) = 5(6k + 15), so 12k = 105, which is also not whole. Use the algebra setup whenever two different amounts change, and always check that the result is a whole number of people.