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