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