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