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