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