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