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