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