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