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