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