Given that Rebecca is x years old and Mary is 8 yrs older than her , so the age of Mary will be;

Again Jim is 3 times older than Mary, so the age of Jim will be,

Now we are given that the sum of their ages is 67. So that ;
Equation in terms of x :-

Solving the equation,





So ,
- Age of Rebecca= x = 7 yrs
- Age of Mary = x+8 = 15yrs
- Age of Jim =3(x+8) = 45 yrs .
And we are done!