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