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