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