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