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