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