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