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