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