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