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