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