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