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