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