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