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