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