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