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