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