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