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