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