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