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