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