If we simplify this question then it is saying
1. Sum of the age of all three is 140
2. Grandfather age is 12 times of Grandson
3. Father age is 7 times of Grandson
Now let assume grandfather age is x, fathers is y and grandson is z. Then we have following equations
x + y + z = 140
x =12z
y = 7z
Which gives
Grandfather age is 84
Fathers age is 49
Grandson age is 7