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