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