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