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