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