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