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