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