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