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