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