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