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