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