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