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