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