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