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