John is currently 3 times as old as his daughter, Mary. In 5 years, John will be twice as old as Mary. How old are John and Mary currently? Let's think step by step and output the final answer within \boxed{}.
user