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