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