John is twice as old as Mary. The sum of their ages is 52. How old is Mary? If J = John's age and M = Mary's age, which system of equations could be used to solve the problem?