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