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