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