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