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