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