There are 6 baskets on the table. Each basket has 0, 7, 9, 17, 18 and 2 apples. Sean chose second, Matt chose third, Olivia chose fifth, Emma chose first, Liam chose fourth, and John chose sixth. How many apples did Matt and Sean choose in total?