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