Tom is currently 12 years old. His sister, Mary, is 3 years older than Tom. Their cousin, John, is twice as old as Tom. How old will each of them be in 5 years, and what is the total sum of their ages at that time? Let's think step by step and output the final answer within \boxed{}.
user