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