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