Five years ago, John was three times as old as his sister Mary. In three 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