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