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