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