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