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