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