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