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