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