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