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