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