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