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