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