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