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