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