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