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