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