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