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