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