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