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