Group A has 20 members and Group B has 28. If a total of 42 people belong to the two groups, how many people belong to both groups?