so tom's age = 2 x(jerry's age in the past) = 2 x (the difference between tom's actual age and jerry's age in the past, which is twice the difference between their age).
so tom's age = 4 times the difference between their age.
jerry's age = 3 times the difference between their age.