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