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