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