Mary has 6 more pennies than Andy has. Together they have 28 pennies. How many pennies does each person have?

x + 6 + x = 28

2x + 6 = 28

2x = 22

x = 11

Andy has 11 pennies; Mary has 17 pennies.