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