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