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