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