So make the formulas...
w=3d; w+9=2d+9...
So for the relationship to be 3 times difference and 2 times difference plus nine years it means that 1 time is 9 years so the daughter starts as 9 years and the mom as 27 but after nine years the daughter is 18 years old and the mom is 36 years old