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