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