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