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