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