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