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