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