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