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