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