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