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