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