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