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