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