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