Three times Mary's age added to Beth's age is 34 years. Half of Mary's age minus Beth's age is 1 year. How old are Mary and Beth?