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