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