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