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