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