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