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