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