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