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