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