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