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