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