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