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