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