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