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