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