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