A grandmother is three times as old as her granddaughter. In 12 years, the grandmother will be twice as old as her granddaughter. How old is each of them now? Let's think step by step and output the final answer within \boxed{}.
user