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