Let T be Tom's age now.
And, J be Jerry's age now.
Today, Tom is twice as old as Jerry:
T = 2J
In two years from now, Tom will be 2 years older and he will also be 4 times the age that Jerry was 9 years ago:
T + 2 = 4 (J - 9)
We have a system of equations:
T = 2J
T + 2 = 4 (J - 9)
To solve the system of equation, we replace T in the second equation:
2J + 2 = 4 (J-9)
2J + 2 = 4J - 36
2J = 4J - 36 - 2
2J = 4J - 38
2J - 4J = -38
-2J = -38
J = -38 / -2
J = 19
And, we replace J in the first equation:
T = 2 (19)
T = 38
Now, Tom is 38 and Jerry is 19.