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