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