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