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