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