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