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