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