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