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