Solution:
X - Mother’s age
Y - Grandmother’s age
Z - John’s age today
X - 20 - Mother’s age 20 years ago
Y - 20 - Grandmother’s age 20 years ago
Y - 20 = 2(x - 20) <=> Y = 2x - 20
Today, my grandmother is 2 times older then my mother was when I was born.
Y = 2(x -20 + z) <=> 2x - 20 = 2x - 40 + 2z
-20 = -40 +2z
20 = 2z
Z = 10