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