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