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