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