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