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