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