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