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