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