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