Question: A says to B, I am twice as old as you were, when I was as old as you are. If the sum of ages is 63 years. Find the difference between their ages.
My Question: I understand that we need to form 2 equations in 2 variables and solve them simultaneously to get ages of A and B; and then find the difference.
Equation 1 : A + B = 63.
I am finding constructing the Equation 2 difficult. "I was as old as you are" this means we go back in time by say 'x' years when A was as old as B,
so will it be A-x = 2*(B-x);
but it introduces a third variable 'x'.
Let's say that $x$ years ago, A was as old as B is now. But if $a$ is the age of A now, then $a - x$ was A's age $x$ years ago. And that's how old B is now, so if B's age now is $b$, then $a - x = b$.
We also know that A's age now, that is, $a$, is twice what B's age was $x$ years ago, and so $a = 2(b - x)$.
And as you know, $a + b = 63$.
That's three variables, but also three linear equations, and they have (in this case) a unique solution.