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