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