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