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