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