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