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