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