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