Today Erica is 3 times older than Mary. In 9 years, Erica will be 34 years older than Mary. How old are they?