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