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