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