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