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