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