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