Joe is twice as old as Mary. Nick is 7 years older than Mary. The sum of their ages is 43. What is the age of each person?