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