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