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