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