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