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