The ages of A and B are in the ratio 3: 1. After fifteen years, the ratio will be 2: 1. Their present ages are
Let the ages of A and B be 3x and x years respectively.
Then, 3x+15x+15 = 21
→ 3x + 15 = 2x + 30
→ x = 15 years
So, A's age = (3 × 15) years = 45 years and
B's age = 15 years.