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