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