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