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