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