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