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