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