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