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