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