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