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