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