Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: the ratio of the present age of sandy to that of molly is 9 : 2 . eight years from now , the ratio of the ages of sandy to molly will be 5 : 2 . what was sandy ' s age 6 years ago ?
